Linting.
This commit is contained in:
parent
5702b849d1
commit
b0ff6e2973
|
@ -9,7 +9,7 @@
|
||||||
let permissions = []
|
let permissions = []
|
||||||
let selectedRole = {}
|
let selectedRole = {}
|
||||||
let errors = []
|
let errors = []
|
||||||
let builtInRoles = ['Admin', 'Power', 'Basic', 'Public']
|
let builtInRoles = ["Admin", "Power", "Basic", "Public"]
|
||||||
$: selectedRoleId = selectedRole._id
|
$: selectedRoleId = selectedRole._id
|
||||||
$: otherRoles = $backendUiStore.roles.filter(
|
$: otherRoles = $backendUiStore.roles.filter(
|
||||||
role => role._id !== selectedRoleId
|
role => role._id !== selectedRoleId
|
||||||
|
@ -103,7 +103,11 @@
|
||||||
{/each}
|
{/each}
|
||||||
</Select>
|
</Select>
|
||||||
{#if selectedRole}
|
{#if selectedRole}
|
||||||
<Input label="Name" bind:value={selectedRole.name} thin disabled={builtInRoles.includes(selectedRole.name)}/>
|
<Input
|
||||||
|
label="Name"
|
||||||
|
bind:value={selectedRole.name}
|
||||||
|
thin
|
||||||
|
disabled={builtInRoles.includes(selectedRole.name)} />
|
||||||
<Select
|
<Select
|
||||||
thin
|
thin
|
||||||
secondary
|
secondary
|
||||||
|
|
Loading…
Reference in New Issue