From d44493d0cfb26c0ed8a297ee9c584503b15ddb99 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matej=20Glasn=C3=A1k?= Date: Thu, 6 Jul 2023 18:53:25 +0200 Subject: [PATCH] [Task] File uplaod loader --- app/src/plugins/tm@modal/task/z-task-modal.vue | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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 9cde1d7..6c776cd 100644 --- a/app/src/plugins/tm@modal/task/z-task-modal.vue +++ b/app/src/plugins/tm@modal/task/z-task-modal.vue @@ -58,7 +58,8 @@ - {{ subtask.id ? "UPRAVIŤ" : "VYTVORIŤ" }} + {{ subtask.id ? "UPRAVIŤ" : "VYTVORIŤ" }} + {{ $t('Ukladám...')}} @@ -138,6 +139,7 @@ export default { editMode: false, visible: false, subtask: null, + isSaving: false, errorUtils, v$: useVuelidate(), employeeValidations: [], @@ -188,6 +190,7 @@ export default { methods: { async showModal({subtask, editMode = false, mastertask = {}}) { + this.isSaving = false this.subtask = null this.visible = true this.$nextTick(() => this.v$.$reset()) @@ -233,6 +236,7 @@ export default { this._mergeDeadlineTimeDate() try { + this.isSaving = true this.subtask.deadline = moment(this.subtask.deadline).format('YYYY-MM-DD HH:mm:SS') if (this.subtask?.id) { @@ -259,6 +263,8 @@ export default { } catch (error) { console.error(error) this.$toast.error(error) + } finally { + this.isSaving = true } },