mirror of
https://bitbucket.org/studiotem/jandl-taskmanager-app.git
synced 2026-10-21 22:39:34 +00:00
[Calendar] Add-time-modal only for logged user
This commit is contained in:
1 parent
bf67f853e3
commit
b4343dc241
3 files changed
+8
-3
No files matched your search
@@ -156,7 +156,9 @@ export default {
|
||||
try {
|
||||
const { subtask } = await this.$axios.put_auth(`v1/subtasks/${editedSubtask.id}`, editedSubtask)
|
||||
this.$events.emit('on-subtask-edited', subtask)
|
||||
this.$events.emit('show-task-add-time-modal', { subtask })
|
||||
|
||||
if (subtask.employee_id == this.$store.getters['auth/user'].id)
|
||||
this.$events.emit('show-task-add-time-modal', { subtask })
|
||||
} catch (error) {
|
||||
this.$toast.error(error.message || error)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user