diff --git a/src/lib/components/floatingActionBar.svelte b/src/lib/components/floatingActionBar.svelte new file mode 100644 index 0000000000..5f25bad40a --- /dev/null +++ b/src/lib/components/floatingActionBar.svelte @@ -0,0 +1,37 @@ + + +{#if show} +
+{/if} + + diff --git a/src/lib/components/index.ts b/src/lib/components/index.ts index 411e81f48e..581b391467 100644 --- a/src/lib/components/index.ts +++ b/src/lib/components/index.ts @@ -54,5 +54,5 @@ export { default as ClickableListItem } from './clickableListItem.svelte'; export { default as Id } from './id.svelte'; export { default as EyebrowHeading } from './eyebrowHeading.svelte'; export { default as SvgIcon } from './svgIcon.svelte'; - export { default as MigrationBox } from './migrationBox.svelte'; +export { default as FloatingActionBar } from './floatingActionBar.svelte'; diff --git a/src/lib/constants.ts b/src/lib/constants.ts index ccdf6c6a09..e2bb2fb6f9 100644 --- a/src/lib/constants.ts +++ b/src/lib/constants.ts @@ -34,7 +34,8 @@ export enum Dependencies { DOMAINS = 'dependency:domains', WEBHOOK = 'dependency:webhook', WEBHOOKS = 'dependency:webhooks', - MIGRATIONS = 'dependency:migrations' + MIGRATIONS = 'dependency:migrations', + COLLECTIONS = 'dependency:collections' } export const scopes: { diff --git a/src/lib/elements/forms/inputCheckbox.svelte b/src/lib/elements/forms/inputCheckbox.svelte index b8c601635b..601607e594 100644 --- a/src/lib/elements/forms/inputCheckbox.svelte +++ b/src/lib/elements/forms/inputCheckbox.svelte @@ -1,11 +1,12 @@+ Are you sure you want to delete {selectedDb.length} + {selectedDb.length > 1 ? 'documents' : 'document'}? +
+ + {#if relAttributes?.length} +This action is irreversible.
+ {/if} ++ Are you sure you want to delete {selected.length} + {selected.length > 1 ? 'collections' : 'collection'}? +
++ Are you sure you want to delete {selected.length} + {selected.length > 1 ? 'databases' : 'database'}? +
+