Commit a9707411 authored by Michael Lange's avatar Michael Lange
Browse files

Move the Diff property read out of the template

parent f29f4351
Showing with 4 additions and 2 deletions
+4 -2
......@@ -9,6 +9,8 @@ export default Controller.extend({
planError: null,
runError: null,
planOutput: null,
showPlanMessage: localStorageProperty('nomadMessageJobPlan', true),
showEditorMessage: localStorageProperty('nomadMessageJobEditor', true),
......@@ -29,7 +31,7 @@ export default Controller.extend({
try {
const planOutput = yield this.get('model').plan();
this.set('planOutput', planOutput);
this.set('planOutput', planOutput.Diff);
} catch (err) {
const error = messageFromAdapterError(err) || 'Could not plan job';
this.set('planError', error);
......
......@@ -70,7 +70,7 @@
<div class="boxed-section">
<div class="boxed-section-head">Job Plan</div>
<div class="boxed-section-body is-dark">
{{job-diff diff=planOutput.Diff}}
{{job-diff diff=planOutput}}
</div>
</div>
<div class="content is-associative">
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment