Skip to content

Commit

Permalink
[todos] disallow artists to edit due date, start date and estimation (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
EvanBldy authored Dec 18, 2024
1 parent 3c340f0 commit 71da92c
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/components/lists/TodosList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@
type="number"
:value="formatDuration(entry.estimation, false)"
@change="updateEstimation($event.target.value)"
v-if="selectionGrid[entry.id]"
v-if="isCurrentUserManager && selectionGrid[entry.id]"
/>
<template v-else>
{{ formatDuration(entry.estimation) }}
Expand All @@ -170,7 +170,7 @@
:model-value="getDate(entry.start_date)"
:with-margin="false"
@update:model-value="updateStartDate"
v-if="selectionGrid[entry.id]"
v-if="isCurrentUserManager && selectionGrid[entry.id]"
/>
<template v-else>
{{ formatDate(entry.start_date) }}
Expand All @@ -183,7 +183,7 @@
:model-value="getDate(entry.due_date)"
:with-margin="false"
@update:model-value="updateDueDate"
v-if="selectionGrid[entry.id]"
v-if="isCurrentUserManager && selectionGrid[entry.id]"
/>
<template v-else>
{{ formatDate(entry.due_date) }}
Expand Down Expand Up @@ -417,7 +417,8 @@ export default {
'productionMap',
'taskMap',
'taskTypeMap',
'user'
'user',
'isCurrentUserManager'
]),
displayedTasks() {
Expand Down

0 comments on commit 71da92c

Please sign in to comment.