+
+ Choose which two projects over will be blocked after this date.
+
+
+
+ Project Name
+ Created
+
+ {#each projects as project}
+
+ {project.name}
+ {new Date(project.$createdAt).toLocaleDateString()}
+ {new Date(project.$createdAt).toLocaleTimeString()}
+
+ {/each}
+
+ {#if selectedProjects.length > 2}
+
+ You can only select two projects. Please deselect others to continue.
+
+ {/if}
+ {#if selectedProjects.length === 2}
+
+ {#each projectsToArchive as project, index}{@const text = `${project.name}`}
+ {@html text}{index == projectsToArchive.length - 2
+ ? ', and '
+ : index < projectsToArchive.length - 1
+ ? ', '
+ : ''}
+ {/each} will be archived.
+
+ {/if}
+
+ (showSelectProject = false)}
+ >Cancel
+ Save
+
+
diff --git a/src/routes/(console)/+layout.svelte b/src/routes/(console)/+layout.svelte
index f8f4235a6..d12b9baca 100644
--- a/src/routes/(console)/+layout.svelte
+++ b/src/routes/(console)/+layout.svelte
@@ -4,12 +4,7 @@
import Footer from '$lib/layout/footer.svelte';
import Shell from '$lib/layout/shell.svelte';
import { app } from '$lib/stores/app';
- import {
- newOrgModal,
- organization,
- projectsCount,
- type Organization
- } from '$lib/stores/organization';
+ import { newOrgModal, organization, type Organization } from '$lib/stores/organization';
import { database, checkForDatabaseBackupPolicies } from '$lib/stores/database';
import { wizard } from '$lib/stores/wizard';
import { afterUpdate, onMount } from 'svelte';