mirror of
https://github.com/hcengineering/platform.git
synced 2024-11-30 02:37:46 +03:00
ezqms-910: fix workspace roles editing (#5726)
Signed-off-by: Alexey Zinoviev <alexey.zinoviev@xored.com>
This commit is contained in:
parent
33d6ec0786
commit
0afcc2cdfe
@ -24,12 +24,9 @@
|
||||
export let visibleNav: boolean = true
|
||||
|
||||
const dispatch = createEventDispatcher()
|
||||
|
||||
const client = getClient()
|
||||
|
||||
const query = createQuery()
|
||||
|
||||
const currentRole = getCurrentAccount().role
|
||||
const currentAccount = getCurrentAccount()
|
||||
|
||||
const items: DropdownIntlItem[] = [
|
||||
{ id: AccountRole.User, label: setting.string.User },
|
||||
@ -73,7 +70,7 @@
|
||||
</div>
|
||||
<DropdownLabelsIntl
|
||||
label={setting.string.Role}
|
||||
disabled={!hasAccountRole(account, currentRole) ||
|
||||
disabled={!hasAccountRole(currentAccount, account.role) ||
|
||||
(account.role === AccountRole.Owner && owners.length === 1)}
|
||||
kind={'primary'}
|
||||
size={'medium'}
|
||||
|
Loading…
Reference in New Issue
Block a user