fix: reload list resource if not already loading
This commit is contained in:
parent
964660940e
commit
4222121e41
@ -203,7 +203,9 @@
|
|||||||
label: __('Export'),
|
label: __('Export'),
|
||||||
icon: () => h(ExportIcon, { class: 'h-4 w-4' }),
|
icon: () => h(ExportIcon, { class: 'h-4 w-4' }),
|
||||||
onClick: () => (showExportDialog = true),
|
onClick: () => (showExportDialog = true),
|
||||||
condition: () => !options.hideColumnsButton && route.params.viewType !== 'kanban',
|
condition: () =>
|
||||||
|
!options.hideColumnsButton &&
|
||||||
|
route.params.viewType !== 'kanban',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: __('Customize quick filters'),
|
label: __('Customize quick filters'),
|
||||||
@ -535,6 +537,7 @@ onMounted(() => useDebounceFn(reload, 100)())
|
|||||||
const isLoading = computed(() => list.value?.loading)
|
const isLoading = computed(() => list.value?.loading)
|
||||||
|
|
||||||
function reload() {
|
function reload() {
|
||||||
|
if (isLoading.value) return
|
||||||
list.value.params = getParams()
|
list.value.params = getParams()
|
||||||
list.value.reload()
|
list.value.reload()
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user