mirror of
https://github.com/hcengineering/platform.git
synced 2025-05-30 04:05:39 +00: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
|
export let visibleNav: boolean = true
|
||||||
|
|
||||||
const dispatch = createEventDispatcher()
|
const dispatch = createEventDispatcher()
|
||||||
|
|
||||||
const client = getClient()
|
const client = getClient()
|
||||||
|
|
||||||
const query = createQuery()
|
const query = createQuery()
|
||||||
|
const currentAccount = getCurrentAccount()
|
||||||
const currentRole = getCurrentAccount().role
|
|
||||||
|
|
||||||
const items: DropdownIntlItem[] = [
|
const items: DropdownIntlItem[] = [
|
||||||
{ id: AccountRole.User, label: setting.string.User },
|
{ id: AccountRole.User, label: setting.string.User },
|
||||||
@ -73,7 +70,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<DropdownLabelsIntl
|
<DropdownLabelsIntl
|
||||||
label={setting.string.Role}
|
label={setting.string.Role}
|
||||||
disabled={!hasAccountRole(account, currentRole) ||
|
disabled={!hasAccountRole(currentAccount, account.role) ||
|
||||||
(account.role === AccountRole.Owner && owners.length === 1)}
|
(account.role === AccountRole.Owner && owners.length === 1)}
|
||||||
kind={'primary'}
|
kind={'primary'}
|
||||||
size={'medium'}
|
size={'medium'}
|
||||||
|
Loading…
Reference in New Issue
Block a user