From 85c8656eff1a115503d312b9c786e05c8b39584a Mon Sep 17 00:00:00 2001 From: hc-github-team-nomad-core <82989552+hc-github-team-nomad-core@users.noreply.github.com> Date: Wed, 18 Dec 2024 19:03:10 +0000 Subject: [PATCH] backport of commit 04e930b75637f2e6cf4f80663e8c3e608f633285 (#24710) Co-authored-by: Daniel Peinhopf <84123899+sevensolutions@users.noreply.github.com> --- .changelog/24622.txt | 3 +++ ui/app/templates/components/job-editor/edit.hbs | 6 +++++- 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 .changelog/24622.txt diff --git a/.changelog/24622.txt b/.changelog/24622.txt new file mode 100644 index 00000000000..f061d24f21c --- /dev/null +++ b/.changelog/24622.txt @@ -0,0 +1,3 @@ +```release-note:improvement +ui: Added possibility to supply HCL variable values on job submission +``` diff --git a/ui/app/templates/components/job-editor/edit.hbs b/ui/app/templates/components/job-editor/edit.hbs index 44413c6f532..11c6871bd5b 100644 --- a/ui/app/templates/components/job-editor/edit.hbs +++ b/ui/app/templates/components/job-editor/edit.hbs @@ -70,10 +70,14 @@ }} > - {{#if (eq @data.view "job-spec")}} + {{#if (or (eq @data.view "job-spec") @data.job.isNew)}}
+ {{#if @data.job.isNew}} + HCL Variable Values + {{else}} Edit HCL Variable Values + {{/if}}