fix: Bulk URL Import Fixes (#2796)

* allow expections when fetching content

* removed extra bracket on import text

* added more fault tolerance and limited concurrency

* fix entries not being saved to report

* disable clicking into in-proress import

* conditionally render expansion
This commit is contained in:
Michael Genson
2023-12-07 11:08:47 -06:00
committed by GitHub
parent 449bb6f0ce
commit f8ad72ec31
6 changed files with 37 additions and 19 deletions

View File

@@ -49,6 +49,10 @@ export default defineComponent({
];
function handleRowClick(item: ReportSummary) {
if (item.status === "in-progress") {
return;
}
router.push(`/group/reports/${item.id}`);
}

View File

@@ -121,7 +121,7 @@
<template #icon>
{{ $globals.icons.database }}
</template>
{{ $t('general.import') }}}
{{ $t('general.import') }}
</BaseButton>
<BaseButton
color="info"

View File

@@ -21,7 +21,7 @@
{{ $d(Date.parse(item.timestamp), "short") }}
</template>
<template #expanded-item="{ headers, item }">
<td class="pa-6" :colspan="headers.length">{{ item.exception }}</td>
<td v-if="item.exception" class="pa-6" :colspan="headers.length">{{ item.exception }}</td>
</template>
</v-data-table>
</v-container>