feat: only allow current responsible user and group
This commit is contained in:
parent
2192041e35
commit
0871a8b899
1 changed files with 15 additions and 1 deletions
|
|
@ -1005,7 +1005,21 @@ function toEmployee(employee: RequestData['employee']) {
|
||||||
:label="$t('dialog.action.close')"
|
:label="$t('dialog.action.close')"
|
||||||
/>
|
/>
|
||||||
<MainButton
|
<MainButton
|
||||||
v-if="productsList.some((v) => v._messengerExpansion)"
|
v-if="
|
||||||
|
productsList.some((v) => v._messengerExpansion) &&
|
||||||
|
!(
|
||||||
|
data.requestDataStatus === RequestDataStatus.Canceled ||
|
||||||
|
(responsibleList &&
|
||||||
|
!responsibleList[pageState.currentStep]?.user.find(
|
||||||
|
(v) => v.id === getUserId(),
|
||||||
|
) &&
|
||||||
|
!responsibleList[pageState.currentStep]?.group.some((v) =>
|
||||||
|
currentUserGroup.includes(v),
|
||||||
|
)) ||
|
||||||
|
(!!responsibleList[pageState.currentStep]?.user?.length &&
|
||||||
|
!!responsibleList[pageState.currentStep]?.user?.length)
|
||||||
|
)
|
||||||
|
"
|
||||||
solid
|
solid
|
||||||
icon="mdi-account-outline"
|
icon="mdi-account-outline"
|
||||||
color="207 96% 32%"
|
color="207 96% 32%"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue