github.com/hernad/nomad@v1.6.112/ui/app/templates/components/job-editor/alert.hbs (about) 1 {{! 2 Copyright (c) HashiCorp, Inc. 3 SPDX-License-Identifier: MPL-2.0 4 ~}} 5 6 <div class="job-editor-alerts"> 7 {{#if @data.error}} 8 <Hds::Alert @type="inline" @color="critical" data-test-error={{@data.error.type}} as |A|> 9 <A.Title data-test-error-title>{{conditionally-capitalize @data.error.type true}}</A.Title> 10 <A.Description data-test-error-message>{{@data.error.message}}</A.Description> 11 </Hds::Alert> 12 {{/if}} 13 {{#if (and (eq @data.stage "read") @data.hasVariables (eq @data.view "job-spec"))}} 14 {{#if this.shouldShowAlert}} 15 <Hds::Alert @type="inline" @onDismiss={{this.dismissAlert}} data-test-variable-notification as |A|> 16 <A.Title>HCL Variables values may be incomplete</A.Title> 17 <A.Description>Nomad cannot ensure that all variable values provided below match those provided on job submit. Ensure the proper values are provided before re-submitting the job.</A.Description> 18 </Hds::Alert> 19 {{/if}} 20 {{/if}} 21 {{#if (and (eq @data.stage "edit") (eq @data.view "full-definition"))}} 22 <Hds::Alert @type="inline" @color="warning" data-test-json-warning as |A|> 23 <A.Title>Edit JSON</A.Title> 24 <A.Description>If you edit the JSON formation in the full definition, you will no longer be able to see job spec in HCL.</A.Description> 25 </Hds::Alert> 26 {{/if}} 27 {{#if (and (eq @data.stage "review") @data.shouldShowPlanMessage)}} 28 <Hds::Alert @type="inline" @onDismiss={{@fns.onDismissPlanMessage}} as |A|> 29 <A.Title data-test-plan-help-title>Job Plan</A.Title> 30 <A.Description data-test-plan-help-message>This is the impact running this job will have on your cluster</A.Description> 31 </Hds::Alert> 32 {{/if}} 33 </div> 34