refactor: streamline access control for task order actions in the table component
Some checks failed
Spell Check / Spell Check with Typos (push) Failing after 8s
Some checks failed
Spell Check / Spell Check with Typos (push) Failing after 8s
This commit is contained in:
parent
942449e373
commit
9dcec6b4c6
1 changed files with 3 additions and 3 deletions
|
|
@ -216,10 +216,9 @@ const emit = defineEmits<{
|
||||||
/>
|
/>
|
||||||
<KebabAction
|
<KebabAction
|
||||||
v-if="
|
v-if="
|
||||||
canAccess('related', 'edit') &&
|
!receive && props.row.taskOrderStatus === TaskOrderStatus.Pending
|
||||||
!receive &&
|
|
||||||
props.row.taskOrderStatus === TaskOrderStatus.Pending
|
|
||||||
"
|
"
|
||||||
|
:hide-delete="!canAccess('related', 'edit')"
|
||||||
:idName="`btn-kebab-${props.row.taskName}`"
|
:idName="`btn-kebab-${props.row.taskName}`"
|
||||||
status="'ACTIVE'"
|
status="'ACTIVE'"
|
||||||
hide-toggle
|
hide-toggle
|
||||||
|
|
@ -268,6 +267,7 @@ const emit = defineEmits<{
|
||||||
:status="$t(taskOrderStatus(props.row.taskOrderStatus, 'status'))"
|
:status="$t(taskOrderStatus(props.row.taskOrderStatus, 'status'))"
|
||||||
:badge-color="taskOrderStatus(props.row.taskOrderStatus, 'color')"
|
:badge-color="taskOrderStatus(props.row.taskOrderStatus, 'color')"
|
||||||
hide-preview
|
hide-preview
|
||||||
|
:hideKebabDelete="!canAccess('related', 'edit')"
|
||||||
:hide-action="
|
:hide-action="
|
||||||
receive || props.row.taskOrderStatus !== TaskOrderStatus.Pending
|
receive || props.row.taskOrderStatus !== TaskOrderStatus.Pending
|
||||||
"
|
"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue