mirror of
https://github.com/appwrite/console.git
synced 2026-06-06 19:27:48 +00:00
Merge pull request #2172 from appwrite/fix-projects-selection
This commit is contained in:
@@ -24,7 +24,7 @@
|
||||
let error = $state<string | null>(null);
|
||||
|
||||
onMount(() => {
|
||||
projects = page.data.projects?.projects || [];
|
||||
projects = page.data.allProjects?.projects || [];
|
||||
});
|
||||
|
||||
let projectsToArchive = $derived(
|
||||
|
||||
@@ -297,7 +297,7 @@
|
||||
if (currentOrganizationId === org.$id) return;
|
||||
if (isCloud) {
|
||||
currentOrganizationId = org.$id;
|
||||
checkForProjectsLimit(org, data.projects?.projects?.length || 0);
|
||||
checkForProjectsLimit(org, data.allProjects?.projects?.length || 0);
|
||||
checkForEnterpriseTrial(org);
|
||||
await checkForUsageLimit(org);
|
||||
checkForMarkedForDeletion(org);
|
||||
|
||||
@@ -55,7 +55,7 @@ export const load: LayoutLoad = async ({ depends, parent }) => {
|
||||
organizations,
|
||||
consoleVariables,
|
||||
version: versionData?.version ?? null,
|
||||
projects
|
||||
allProjects: projects
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
@@ -164,7 +164,7 @@
|
||||
</DropList>
|
||||
</div>
|
||||
|
||||
{#if isCloud && $currentPlan?.projects && $currentPlan?.projects > 0 && data.organization.projects.length > 0 && $canWriteProjects}
|
||||
{#if isCloud && $currentPlan?.projects && $currentPlan?.projects > 0 && data.organization.projects.length > 0 && data.projects.total > 2 && $canWriteProjects}
|
||||
<Alert.Inline
|
||||
title={`${data.projects.total - data.organization.projects.length} projects will be archived on ${toLocaleDate(billingProjectsLimitDate)}`}>
|
||||
<Typography.Text>
|
||||
|
||||
Reference in New Issue
Block a user