Handle disabled
This commit is contained in:
parent
5b7756936d
commit
8c801f2bbe
|
@ -71,31 +71,28 @@
|
||||||
{#if requiresPlanToModify}
|
{#if requiresPlanToModify}
|
||||||
<span class="lock-tag">
|
<span class="lock-tag">
|
||||||
<Tags>
|
<Tags>
|
||||||
<Tag icon="LockClosed">{requiresPlanToModify}</Tag>
|
<Tag icon="LockClosed">{capitalise(requiresPlanToModify)}</Tag>
|
||||||
</Tags>
|
</Tags>
|
||||||
</span>
|
</span>
|
||||||
{/if}
|
{/if}
|
||||||
</span>
|
</span>
|
||||||
{#if requiresPlanToModify}
|
<Body size="S">Specify the minimum access level role for this data.</Body>
|
||||||
<Body size="S">{requiresPlanToModify}</Body>
|
<div class="row">
|
||||||
{:else}
|
<Label extraSmall grey>Level</Label>
|
||||||
<Body size="S">Specify the minimum access level role for this data.</Body>
|
<Label extraSmall grey>Role</Label>
|
||||||
<div class="row">
|
{#each Object.keys(computedPermissions) as level}
|
||||||
<Label extraSmall grey>Level</Label>
|
<Input value={capitalise(level)} disabled />
|
||||||
<Label extraSmall grey>Role</Label>
|
<Select
|
||||||
{#each Object.keys(computedPermissions) as level}
|
disabled={requiresPlanToModify}
|
||||||
<Input value={capitalise(level)} disabled />
|
placeholder={false}
|
||||||
<Select
|
value={computedPermissions[level].selectedValue}
|
||||||
placeholder={false}
|
on:change={e => changePermission(level, e.detail)}
|
||||||
value={computedPermissions[level].selectedValue}
|
options={computedPermissions[level].options}
|
||||||
on:change={e => changePermission(level, e.detail)}
|
getOptionLabel={x => x.name}
|
||||||
options={computedPermissions[level].options}
|
getOptionValue={x => x._id}
|
||||||
getOptionLabel={x => x.name}
|
/>
|
||||||
getOptionValue={x => x._id}
|
{/each}
|
||||||
/>
|
</div>
|
||||||
{/each}
|
|
||||||
</div>
|
|
||||||
{/if}
|
|
||||||
</ModalContent>
|
</ModalContent>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
|
|
Loading…
Reference in New Issue