mirror of
https://github.com/appwrite/console.git
synced 2026-06-06 19:27:48 +00:00
Merge pull request #2470 from appwrite/fix-disabled-button-stae
This commit is contained in:
@@ -83,12 +83,13 @@
|
||||
}
|
||||
|
||||
$: projectCreationDisabled =
|
||||
(isCloud && getServiceLimit('projects') <= data.projects.total) ||
|
||||
(isCloud && getServiceLimit('projects', null, data.currentPlan) <= data.projects.total) ||
|
||||
(isCloud && $readOnly && !GRACE_PERIOD_OVERRIDE) ||
|
||||
!$canWriteProjects;
|
||||
|
||||
$: reachedProjectLimit = isCloud && getServiceLimit('projects') <= data.projects.total;
|
||||
$: projectsLimit = getServiceLimit('projects');
|
||||
$: reachedProjectLimit =
|
||||
isCloud && getServiceLimit('projects', null, data.currentPlan) <= data.projects.total;
|
||||
$: projectsLimit = getServiceLimit('projects', null, data.currentPlan);
|
||||
|
||||
$: $registerCommands([
|
||||
{
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
let areMembersLimited: boolean = $state(false);
|
||||
|
||||
$effect(() => {
|
||||
const limit = getServiceLimit('members') || Infinity;
|
||||
const limit = getServiceLimit('members', null, page.data.currentPlan) || Infinity;
|
||||
const isLimited = limit !== 0 && limit < Infinity;
|
||||
areMembersLimited =
|
||||
isCloud &&
|
||||
|
||||
Reference in New Issue
Block a user