Files
nomad/ui/app/templates/jobs/job/definition.hbs
Buck Doyle 2241b669f2 Update to Ember 3.16/Data 3.12 (#8319)
This updates to Ember 3.16 but leaves Ember Data at 3.12 so we don’t need
to use the model fragments beta. It can be reviewed on a commit-by-commit
basis: blueprint updates, fixes for test failures, and the removal of
now-deprecated partials.

It’s not a true update to Octane as that would involve turning on template-only
components by default, which breaks various things. We can accomplish that
separately and then add the edition setting to package.json.
2020-07-09 11:37:00 -05:00

23 lines
698 B
Handlebars

{{title "Job " job.name " definition"}}
<JobSubnav @job={{job}} />
<section class="section">
{{#unless 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 edit}} data-test-edit-job>Edit</button>
</div>
<div class="boxed-section-body is-full-bleed">
<JsonViewer data-test-definition-view @json={{definition}} />
</div>
</div>
{{else}}
<JobEditor
@job={{job}}
@cancelable={{true}}
@context="edit"
@onCancel={{action onCancel}}
@onSubmit={{action onSubmit}} />
{{/unless}}
</section>