Disabled edit buttons for read-only viewers

This commit is contained in:
Stefan Zermatten
2015-07-23 15:07:39 +02:00
parent ba7ccfdfa0
commit 52198d0249
13 changed files with 43 additions and 34 deletions

View File

@@ -95,14 +95,15 @@
<core-tooltip label="Feature enabled"
position="left">
<paper-checkbox class="enabledCheckbox"
checked={{enabled}}>
checked={{enabled}}
disabled={{#unless canEditCharacter charId}}true{{/unless}}>
</paper-checkbox>
</core-tooltip>
{{/if}}
</div>
{{#if description}}
<div flex class="bottom text"
>{{evaluateString charId description}}</div>
>{{evaluateString charId shortDescription}}</div>
{{/if}}
{{#if hasUses}}
<div layout horizontal center end-justified>