c46d5517bb
This closes #7453. It adds an abstraction to handle the common needs of ability-determination.
12 lines
388 B
Handlebars
12 lines
388 B
Handlebars
{{#let (cannot "exec allocation") as |cannotExec|}}
|
||
<button
|
||
data-test-exec-button
|
||
type="button"
|
||
class="button exec-button is-outline is-small {{if cannotExec "tooltip"}}"
|
||
disabled={{if cannotExec 'disabled'}}
|
||
aria-label={{if cannotExec "You don’t have permission to exec"}}
|
||
{{action "open"}}>
|
||
{{x-icon "console"}}
|
||
<span>Exec</span>
|
||
</button>
|
||
{{/let}} |