feat(export): respect connection query timeout in table export
This commit is contained in:
8 files changed
+148
-7
No files matched your search
@@ -568,6 +568,7 @@ const emit = defineEmits<{
|
||||
"update:whereInput": [value: string];
|
||||
"update:orderByInput": [value: string];
|
||||
"local-column-filters-change": [value: Record<string, string[]>];
|
||||
changeQueryTimeout: [connectionId: string];
|
||||
}>();
|
||||
|
||||
const autoRefresh = useDataGridAutoRefresh({
|
||||
@@ -8155,6 +8156,12 @@ async function cancelActiveExport() {
|
||||
await exportCancelHandler.value?.();
|
||||
}
|
||||
|
||||
function changeExportQueryTimeout() {
|
||||
if (!props.connectionId) return;
|
||||
exportProgressDialog.value = false;
|
||||
emit("changeQueryTimeout", props.connectionId);
|
||||
}
|
||||
|
||||
const userFacingSql = ref("");
|
||||
let userFacingSqlGeneration = 0;
|
||||
|
||||
@@ -14857,7 +14864,17 @@ function openGridSnapshot() {
|
||||
/>
|
||||
<ImagePreviewDialog v-if="imagePreviewMounted" v-model:open="imagePreviewOpen" :src="imagePreviewSrc" :title="imagePreviewTitle" />
|
||||
<component v-if="previewDialogOpen && previewDialogConfig" :is="previewDialogConfig.component" v-model:open="previewDialogOpen" v-bind="previewDialogConfig.props" />
|
||||
<ExportProgressDialog v-if="exportProgressDialogMounted" v-model:open="exportProgressDialog" v-bind="exportProgressState" :disable-cancel="!exportCancelHandler" :can-minimize="exportCanMinimize" @cancel="cancelActiveExport" @minimize="exportProgressDialog = false" />
|
||||
<ExportProgressDialog
|
||||
v-if="exportProgressDialogMounted"
|
||||
v-model:open="exportProgressDialog"
|
||||
v-bind="exportProgressState"
|
||||
:connection-id="connectionId"
|
||||
:disable-cancel="!exportCancelHandler"
|
||||
:can-minimize="exportCanMinimize"
|
||||
@cancel="cancelActiveExport"
|
||||
@minimize="exportProgressDialog = false"
|
||||
@change-query-timeout="changeExportQueryTimeout"
|
||||
/>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
|
||||
Reference in new issue
Block a user