order: revert approve button for master
This commit is contained in:
parent
f305987f68
commit
7dbc08f1d1
@ -41,7 +41,11 @@ export function OrderButtons({ documentId }: Readonly<OrderComponentProps>) {
|
||||
isCancelled || (!isMaster && isCancelling) || isCompleted ? undefined : () => handleCancel()
|
||||
}
|
||||
onConfirm={
|
||||
!isMaster || isApproved || isCancelled || isCancelling || isCompleted
|
||||
!isMaster ||
|
||||
isApproved ||
|
||||
(!isMaster && isCancelled) ||
|
||||
(!isMaster && isCancelling) ||
|
||||
isCompleted
|
||||
? undefined
|
||||
: () => handleApprove()
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user