diff --git a/.changelog/23548.txt b/.changelog/23548.txt new file mode 100644 index 00000000000..54881f1ce8f --- /dev/null +++ b/.changelog/23548.txt @@ -0,0 +1,3 @@ +```release-note:bug +ui: Fix the Upload Jobspec button on the Run Job page +``` diff --git a/ui/app/modifiers/code-mirror.js b/ui/app/modifiers/code-mirror.js index a73048a793c..8710f11ba5e 100644 --- a/ui/app/modifiers/code-mirror.js +++ b/ui/app/modifiers/code-mirror.js @@ -31,6 +31,8 @@ export default class CodeMirrorModifier extends Modifier { this.element = element; this.args = { positional, named }; this._setup(); + } else { + this.didUpdateArguments(); } } diff --git a/ui/app/templates/components/job-editor.hbs b/ui/app/templates/components/job-editor.hbs index f9532e12906..b788a285a97 100644 --- a/ui/app/templates/components/job-editor.hbs +++ b/ui/app/templates/components/job-editor.hbs @@ -15,28 +15,26 @@

Paste or author HCL or JSON to submit to your cluster, or select from a list of templates. A plan will be requested before the job is submitted. You can also attach a job spec by uploading a job file or dragging & dropping a file to the editor.

- - {{#if (can "read variable" path="nomad/job-templates/*" namespace="*")}} - - + + + {{#if (can "read variable" path="nomad/job-templates/*" namespace="*")}} - - {{/if}} - + {{/if}} + {{/if}} {{did-update this.setDefinitionOnModel this.definition}}