fix: manual backup shows policy modal.

This commit is contained in:
ItzNotABug committed 2024-09-29 22:35:39 +05:30
1 parent 1a566ace99
commit 5f766df6c8
1 file changed
+2 -2
@@ -15,7 +15,7 @@
import { showCreate } from './store';
import { CollectionsPanel } from '$lib/commandCenter/panels';
import { canWriteCollections, canWriteDatabases } from '$lib/stores/roles';
import { showCreatePolicy } from './backups/store';
import { showCreateBackup, showCreatePolicy } from './backups/store';
const project = $page.params.project;
const databaseId = $page.params.database;
@@ -61,7 +61,7 @@
if (!$page.url.pathname.endsWith('backups')) {
goto(`${base}/project-${project}/databases/database-${databaseId}/backups`);
}
showCreatePolicy.set(true);
showCreateBackup.set(true);
},
keys: $page.url.pathname.endsWith('backups') ? ['c'] : ['c', 'b'],
group: 'databases',