[subtask, mastertask] dowmload files gif loader fix

This commit is contained in:
romankko2 committed 2023-07-04 17:17:03 +02:00
1 parent 412530fb93
commit f8656396e7
4 files changed
+37 -28

No files matched your search

@@ -4,12 +4,14 @@
<W-loadable :content="files" emptyMessage="Žiadne prílohy neboli nahraté">
<div v-for="(file, index) in files" :key="file.id" class="d-flex align-center flex-wrap" :class="[index === 0 ? 'ml-0' : 'ml-2']">
<v-chip class="mt-2">
<p @click="handleDownload(index)" class="cursor-pointer">
{{ file.name }}
</p>
<p @click="handleDownload(index)" class="cursor-pointer">{{ file.name }}</p>
<v-icon class="mx-1" icon="mdi-paperclip"></v-icon>
<p>{{ (file.file_size / (1024 * 1024)).toFixed(2) }} MB</p>
</v-chip>
<img v-if="showDownload" class="gif-loader" :src="require('@/plugins/app/_img/spinner.gif')" alt="Loading...">
<div v-if="showDownload" class="d-flex align-center">
<img class="gif-loader" :src="require('@/plugins/app/_img/spinner.gif')" alt="Loading...">
<p class="ml-2">Súbor sa sťahuje, počkajte prosím</p>
</div>
</div>
</W-loadable>
</div>
@@ -34,15 +36,8 @@ export default {
}
},
data() {
return {
// downloadingIndex: null
}
},
methods: {
handleDownload(index) {
// this.downloadingIndex = index
this.downloadFile(index)
}
}