diff --git a/.changelog/11019.txt b/.changelog/11019.txt new file mode 100644 index 000000000..089b8a3f0 --- /dev/null +++ b/.changelog/11019.txt @@ -0,0 +1,3 @@ +```release-note:bug +ui: Fixed a bug where the "Dispatch Job" button was displayed for non-parameterized jobs +``` diff --git a/ui/app/templates/components/job-page/parts/children.hbs b/ui/app/templates/components/job-page/parts/children.hbs index 681c28c17..e9d81d3be 100644 --- a/ui/app/templates/components/job-page/parts/children.hbs +++ b/ui/app/templates/components/job-page/parts/children.hbs @@ -1,21 +1,23 @@
Job Launches - {{#if (can "dispatch job" namespace=this.job.namespace)}} - - Dispatch Job - - {{else}} - + {{#if this.job.parameterized}} + {{#if (can "dispatch job" namespace=this.job.namespace)}} + + Dispatch Job + + {{else}} + + {{/if}} {{/if}}