Merge pull request #1748 from appwrite/fix-shortcuts

Fix shortcuts
This commit is contained in:
Darshan authored and GitHub committed 2025-03-17 16:20:27 +05:30
commit 63513e841d
1 file changed
+5 -2
@@ -16,6 +16,7 @@
import { CollectionsPanel } from '$lib/commandCenter/panels';
import { canWriteCollections, canWriteDatabases } from '$lib/stores/roles';
import { showCreateBackup, showCreatePolicy } from './backups/store';
import { currentPlan } from '$lib/stores/organization';
const project = $page.params.project;
const databaseId = $page.params.database;
@@ -53,7 +54,8 @@
keys: $page.url.pathname.endsWith('backups') ? ['c'] : ['c', 'p'],
group: 'databases',
icon: 'plus',
rank: $page.url.pathname.endsWith('backups') ? 10 : 0
rank: $page.url.pathname.endsWith('backups') ? 10 : 0,
disabled: !$currentPlan.backupsEnabled
},
{
label: 'Create manual backup',
@@ -66,7 +68,8 @@
keys: $page.url.pathname.endsWith('backups') ? ['c'] : ['c', 'b'],
group: 'databases',
icon: 'plus',
rank: $page.url.pathname.endsWith('backups') ? 10 : 0
rank: $page.url.pathname.endsWith('backups') ? 10 : 0,
disabled: !$currentPlan.backupsEnabled
},
{
label: 'Go to collections',