ui: only dipslay "Dispatch Job" button on parameterized jobs (#11019)
This commit is contained in:
parent
5b50b385e8
commit
d283e90c35
|
@ -0,0 +1,3 @@
|
|||
```release-note:bug
|
||||
ui: Fixed a bug where the "Dispatch Job" button was displayed for non-parameterized jobs
|
||||
```
|
|
@ -1,5 +1,6 @@
|
|||
<div class="boxed-section-head">
|
||||
Job Launches
|
||||
{{#if this.job.parameterized}}
|
||||
{{#if (can "dispatch job" namespace=this.job.namespace)}}
|
||||
<LinkTo
|
||||
data-test-dispatch-button
|
||||
|
@ -17,6 +18,7 @@
|
|||
Dispatch Job
|
||||
</button>
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
</div>
|
||||
<div class="boxed-section-body {{if this.sortedChildren.length "is-full-bleed"}}">
|
||||
{{#if this.sortedChildren}}
|
||||
|
|
Loading…
Reference in New Issue