@@ -10,6 +10,7 @@ import StyledHeadline from '@/components/ui/StyledHeadline.vue'
10
10
import SubTitle from ' @/components/ui/SubTitle.vue'
11
11
12
12
const active = ref (0 )
13
+ const loading = ref (false )
13
14
const disabled = computed (() => isAandB ())
14
15
const taxid = ref ()
15
16
const dataset = ref ()
@@ -57,6 +58,7 @@ const onExport = () => {
57
58
58
59
function load (operation ) {
59
60
records .value = undefined
61
+ loading .value = true
60
62
HTTP .get (' /compare/ops' , {
61
63
params: {
62
64
datasetIdsA: selectedDatasetA .value ,
@@ -70,6 +72,7 @@ function load(operation) {
70
72
})
71
73
.then (function (response ) {
72
74
records .value = response .data
75
+ loading .value = false
73
76
})
74
77
.catch ((error ) => {
75
78
console .log (error)
@@ -292,6 +295,7 @@ const buttonPt = {
292
295
type =" submit"
293
296
label =" Submit"
294
297
:disabled =" disabled"
298
+ :loading =" loading"
295
299
/>
296
300
<small id =" text-error" class =" p-4 select-none text-sm text-red-700" >
297
301
<i
@@ -318,6 +322,7 @@ const buttonPt = {
318
322
scrollHeight =" 400px"
319
323
:virtualScrollerOptions =" { itemSize: 46 }"
320
324
tableStyle =" min-w-{50rem}"
325
+ :loading =" loading"
321
326
>
322
327
<template #header >
323
328
<div style =" text-align : right " >
@@ -331,6 +336,9 @@ const buttonPt = {
331
336
/>
332
337
</div >
333
338
</template >
339
+ <template #loading >
340
+ <ProgressSpinner style =" width : 60px ; height : 60px " strokeWidth =" 6" />
341
+ </template >
334
342
<ColumnGroup type =" header" >
335
343
<Row >
336
344
<Column header =" Reference dataset A" :colspan =" 9" />
0 commit comments