mirror of
https://github.com/appwrite/console.git
synced 2026-06-06 19:27:48 +00:00
Fix losing queries on nav
This commit is contained in:
+3
-3
@@ -186,9 +186,9 @@
|
||||
leadingIcon={IconDownload}
|
||||
on:click={() => {
|
||||
trackEvent(Click.DatabaseExportCsv);
|
||||
goto(
|
||||
`${base}/project-${page.params.region}-${page.params.project}/databases/database-${page.params.database}/table-${page.params.table}/export`
|
||||
);
|
||||
const queryParam = page.url.searchParams.get('query');
|
||||
const exportUrl = `${base}/project-${page.params.region}-${page.params.project}/databases/database-${page.params.database}/table-${page.params.table}/export${queryParam ? `?query=${queryParam}` : ''}`;
|
||||
goto(exportUrl);
|
||||
}}>
|
||||
Export CSV
|
||||
</ActionMenu.Item.Button>
|
||||
|
||||
+4
-4
@@ -139,9 +139,9 @@
|
||||
|
||||
trackEvent(Submit.DatabaseExportCsv);
|
||||
|
||||
await goto(
|
||||
`${base}/project-${page.params.region}-${page.params.project}/databases/database-${page.params.database}/table-${page.params.table}`
|
||||
);
|
||||
const queryParam = page.url.searchParams.get('query');
|
||||
const tableUrl = `${base}/project-${page.params.region}-${page.params.project}/databases/database-${page.params.database}/table-${page.params.table}${queryParam ? `?query=${queryParam}` : ''}`;
|
||||
await goto(tableUrl);
|
||||
} catch (error) {
|
||||
addNotification({
|
||||
type: 'error',
|
||||
@@ -161,7 +161,7 @@
|
||||
<Wizard
|
||||
title="Export CSV"
|
||||
columnSize="s"
|
||||
href={`${base}/project-${page.params.region}-${page.params.project}/databases/database-${page.params.database}/table-${page.params.table}`}
|
||||
href={`${base}/project-${page.params.region}-${page.params.project}/databases/database-${page.params.database}/table-${page.params.table}${page.url.searchParams.get('query') ? `?query=${page.url.searchParams.get('query')}` : ''}`}
|
||||
bind:showExitModal
|
||||
confirmExit
|
||||
column>
|
||||
|
||||
Reference in New Issue
Block a user