open-nomad/ui/app/templates/jobs/job/definition.hbs
Buck Doyle 244157786a
Add explicit this to templates (#8388)
This is the result of running the no-implicit-this-codemod, some manual fixes,
and the addition of a linting rule to prevent future ambiguity.
2020-07-09 15:19:07 -05:00

23 lines
738 B
Handlebars

{{title "Job " this.job.name " definition"}}
<JobSubnav @job={{this.job}} />
<section class="section">
{{#unless this.isEditing}}
<div class="boxed-section">
<div class="boxed-section-head">
Job Definition
<button class="button is-light is-compact pull-right" type="button" onclick={{action this.edit}} data-test-edit-job>Edit</button>
</div>
<div class="boxed-section-body is-full-bleed">
<JsonViewer data-test-definition-view @json={{this.definition}} />
</div>
</div>
{{else}}
<JobEditor
@job={{this.job}}
@cancelable={{true}}
@context="edit"
@onCancel={{action this.onCancel}}
@onSubmit={{action this.onSubmit}} />
{{/unless}}
</section>