diff --git a/app/src/plugins/app/_img/spinner.gif b/app/src/plugins/app/_img/spinner.gif
new file mode 100644
index 0000000..e9cf332
Binary files /dev/null and b/app/src/plugins/app/_img/spinner.gif differ
diff --git a/app/src/plugins/tm@dashboard/projects/_components/a-project-filter.vue b/app/src/plugins/tm@dashboard/projects/_components/a-project-filter.vue
index 1c52ac4..4a37aa8 100644
--- a/app/src/plugins/tm@dashboard/projects/_components/a-project-filter.vue
+++ b/app/src/plugins/tm@dashboard/projects/_components/a-project-filter.vue
@@ -58,7 +58,6 @@ export default {
mounted() {
const monthIndex = new Date().getMonth()
this.filter.month = monthIndex < 9 ? `0${monthIndex + 1}` : `${monthIndex + 1}`
- console.log(this.enrichedEmployees)
},
computed: {
diff --git a/app/src/plugins/tm@modal/_components/read-only/z-files.vue b/app/src/plugins/tm@modal/_components/read-only/z-files.vue
index ba07b60..e75f090 100644
--- a/app/src/plugins/tm@modal/_components/read-only/z-files.vue
+++ b/app/src/plugins/tm@modal/_components/read-only/z-files.vue
@@ -1,14 +1,17 @@
Prílohy
-
-
-
- {{ file.name }}
-
-
-
-
+
+
+
+
+ {{ file.name }}
+
+
+
+
![Loading...]()
+
+
@@ -18,7 +21,36 @@ export default {
files: {
type: Array,
default: () => []
- }
- }
+ },
+
+ downloadFile: {
+ type: Function,
+ required: true
+ },
+
+ showDownload: {
+ type: Boolean,
+ required: true
+ }
+ },
+
+ data() {
+ return {
+ // downloadingIndex: null
+ }
+ },
+
+ methods: {
+ handleDownload(index) {
+ // this.downloadingIndex = index
+ this.downloadFile(index)
+ }
+ }
}
+
+
\ No newline at end of file
diff --git a/app/src/plugins/tm@modal/master-task/_components/a-mastertask-description.vue b/app/src/plugins/tm@modal/master-task/_components/a-mastertask-description.vue
index 30abd81..2df18d9 100644
--- a/app/src/plugins/tm@modal/master-task/_components/a-mastertask-description.vue
+++ b/app/src/plugins/tm@modal/master-task/_components/a-mastertask-description.vue
@@ -7,10 +7,12 @@
-
+
\ No newline at end of file
diff --git a/app/src/plugins/tm@modal/task/_components/z-task-readonly-info.vue b/app/src/plugins/tm@modal/task/_components/z-task-readonly-info.vue
index 1887303..317d8bc 100644
--- a/app/src/plugins/tm@modal/task/_components/z-task-readonly-info.vue
+++ b/app/src/plugins/tm@modal/task/_components/z-task-readonly-info.vue
@@ -8,10 +8,12 @@
-
+
diff --git a/app/src/plugins/tm@modal/task/z-task-modal.vue b/app/src/plugins/tm@modal/task/z-task-modal.vue
index c7d3f3c..9cde1d7 100644
--- a/app/src/plugins/tm@modal/task/z-task-modal.vue
+++ b/app/src/plugins/tm@modal/task/z-task-modal.vue
@@ -262,15 +262,6 @@ export default {
}
},
- async downloadFile(id) {
- try {
- const file = await this.$axios.get_auth_data(`v1/subtasks/${this.subtask.id}`, { responseType: "arraybuffer" })
- FileSaver.saveAs(file.files[id].path, file.files[id].name)
- } catch (error) {
- this.$toast.error(error)
- }
- },
-
openDeleteTaskModal(subtask) {
this.$events.emit("show-delete-task-modal", { subtask })
},
diff --git a/app/src/plugins/w/loadable/_components/w-loadable.vue b/app/src/plugins/w/loadable/_components/w-loadable.vue
index 7e48953..2749c9d 100644
--- a/app/src/plugins/w/loadable/_components/w-loadable.vue
+++ b/app/src/plugins/w/loadable/_components/w-loadable.vue
@@ -54,6 +54,6 @@ export default {
\ No newline at end of file