2023-04-10 15:36:59 +00:00
|
|
|
|
{{!
|
|
|
|
|
Copyright (c) HashiCorp, Inc.
|
|
|
|
|
SPDX-License-Identifier: MPL-2.0
|
|
|
|
|
}}
|
|
|
|
|
|
2021-04-29 20:00:59 +00:00
|
|
|
|
{{#let (cannot "exec allocation" namespace=this.job.namespace) as |cannotExec|}}
|
2020-05-11 19:43:17 +00:00
|
|
|
|
<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"}}
|
2023-03-20 13:24:39 +00:00
|
|
|
|
{{action "open"}}
|
|
|
|
|
{{keyboard-shortcut
|
|
|
|
|
label="Exec"
|
|
|
|
|
pattern=(array "e" "x" "e" "c")
|
|
|
|
|
action=(action "open")
|
|
|
|
|
}}>
|
2020-05-11 19:43:17 +00:00
|
|
|
|
{{x-icon "console"}}
|
|
|
|
|
<span>Exec</span>
|
|
|
|
|
</button>
|
2021-04-29 20:00:59 +00:00
|
|
|
|
{{/let}}
|
|
|
|
|
|