[Subtask] Fixed timesheets

This commit is contained in:
Matej Glasnák committed 2023-02-28 02:06:51 +01:00
1 parent a9ce7c348e
commit 68b6e6f75a
5 files changed
+13 -12

No files matched your search

@@ -123,12 +123,7 @@ export default {
const { subtask } = await this.$axios.put_auth(`v1/subtasks/${task.id}`, task)
this.closeModal()
this.$store.commit('tm/update_subtask', subtask)
this.$events.emit('on-subtask-edited', subtask)
this.$store.dispatch('tm/loadMastertasks')
this.$store.dispatch('tm/loadUnscheduledSubtasks')
this.$store.dispatch('tm/loadOngoingSubtasks')
} catch (error) {
this.$toast.error(error.message || error)
}
@@ -126,10 +126,6 @@ export default {
this.closeModal()
this.$events.emit('on-subtask-edited', subtask)
this.$store.dispatch('tm/loadMastertasks')
this.$store.dispatch('tm/loadUnscheduledSubtasks')
this.$store.dispatch('tm/loadOngoingSubtasks')
} catch (error) {
this.$toast.error(error.message || error)
}
@@ -40,9 +40,6 @@ export default {
const { subtask } = await this.$axios.put_auth(`v1/subtasks/${tempSubtask.id}`, tempSubtask)
this.visible = false
this.$store.dispatch('tm/loadMastertasks')
this.$store.dispatch('tm/loadUnscheduledSubtasks')
this.$store.dispatch('tm/loadOngoingSubtasks')
this.$emit('on-subtask-edited', subtask)
} catch (error) {
this.$toast.error(error)