open-nomad/ui/app/templates/components/exec/open-button.hbs

12 lines
388 B
Handlebars
Raw Normal View History

{{#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 dont have permission to exec"}}
{{action "open"}}>
{{x-icon "console"}}
<span>Exec</span>
</button>
{{/let}}