Skip to content

Commit e3002c2

Browse files
committed
ADD spinners
1 parent b714e20 commit e3002c2

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

client/src/views/CompareView.vue

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import StyledHeadline from '@/components/ui/StyledHeadline.vue'
1010
import SubTitle from '@/components/ui/SubTitle.vue'
1111
1212
const active = ref(0)
13+
const loading = ref(false)
1314
const disabled = computed(() => isAandB())
1415
const taxid = ref()
1516
const dataset = ref()
@@ -57,6 +58,7 @@ const onExport = () => {
5758
5859
function load(operation) {
5960
records.value = undefined
61+
loading.value = true
6062
HTTP.get('/compare/ops', {
6163
params: {
6264
datasetIdsA: selectedDatasetA.value,
@@ -70,6 +72,7 @@ function load(operation) {
7072
})
7173
.then(function (response) {
7274
records.value = response.data
75+
loading.value = false
7376
})
7477
.catch((error) => {
7578
console.log(error)
@@ -292,6 +295,7 @@ const buttonPt = {
292295
type="submit"
293296
label="Submit"
294297
:disabled="disabled"
298+
:loading="loading"
295299
/>
296300
<small id="text-error" class="p-4 select-none text-sm text-red-700">
297301
<i
@@ -318,6 +322,7 @@ const buttonPt = {
318322
scrollHeight="400px"
319323
:virtualScrollerOptions="{ itemSize: 46 }"
320324
tableStyle="min-w-{50rem}"
325+
:loading="loading"
321326
>
322327
<template #header>
323328
<div style="text-align: right">
@@ -331,6 +336,9 @@ const buttonPt = {
331336
/>
332337
</div>
333338
</template>
339+
<template #loading>
340+
<ProgressSpinner style="width: 60px; height: 60px" strokeWidth="6" />
341+
</template>
334342
<ColumnGroup type="header">
335343
<Row>
336344
<Column header="Reference dataset A" :colspan="9" />

0 commit comments

Comments
 (0)