2022-06-10 14:05:34 +00:00
|
|
|
{{#if this.error}}
|
|
|
|
<div data-test-inline-error class="notification is-danger">
|
|
|
|
<div class="columns">
|
|
|
|
<div class="column">
|
|
|
|
<h3 data-test-inline-error-title class="title is-4">
|
|
|
|
{{this.error.title}}
|
|
|
|
</h3>
|
|
|
|
<p data-test-inline-error-body>
|
|
|
|
{{this.error.description}}
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
<div class="column is-centered is-minimum">
|
|
|
|
<button
|
|
|
|
data-test-inline-error-close
|
|
|
|
class="button is-danger"
|
|
|
|
onclick={{action this.onDismissError}}
|
|
|
|
type="button"
|
|
|
|
>
|
|
|
|
Okay
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{/if}}
|
|
|
|
|
|
|
|
<h1 class="title with-flex">
|
|
|
|
<div>
|
|
|
|
<FlightIcon @name="file-text" />
|
|
|
|
{{this.model.path}}
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<div class="two-step-button">
|
|
|
|
<LinkTo
|
|
|
|
class="button is-info is-inverted is-small"
|
|
|
|
@model={{this.model}}
|
|
|
|
@route="variables.variable.edit"
|
|
|
|
>
|
|
|
|
Edit
|
|
|
|
</LinkTo>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<TwoStepButton
|
|
|
|
data-test-delete-button
|
|
|
|
@alignRight={{true}}
|
|
|
|
@idleText="Delete"
|
|
|
|
@cancelText="Cancel"
|
|
|
|
@confirmText="Yes, delete"
|
|
|
|
@confirmationMessage="Are you sure you want to delete this variable and all its items?"
|
|
|
|
@awaitingConfirmation={{this.deleteVariableFile.isRunning}}
|
|
|
|
@onConfirm={{perform this.deleteVariableFile}} />
|
|
|
|
</div>
|
|
|
|
</h1>
|
|
|
|
|
2022-05-30 17:10:44 +00:00
|
|
|
<ListTable data-test-eval-table @source={{this.model.keyValues}} as |t|>
|
|
|
|
<t.body as |row|>
|
|
|
|
<tr>
|
|
|
|
<td>{{row.model.key}}</td>
|
|
|
|
<td>{{row.model.value}}</td>
|
|
|
|
</tr>
|
|
|
|
</t.body>
|
|
|
|
</ListTable>
|