open-nomad/ui/app/components/das/dismissed.hbs
Buck Doyle e9e52e0dfe
Update Ember/Ember CLI to 3.20 (#9641)
This doesn’t include Ember Data, as we are still back on 3.12.

Most changes are deprecation updates, linting fixes, and dependencies. It can
be read commit-by-commit, though many of them are mechanical and skimmable.
For the new linting exclusions, I’ve added them to the Tech Debt list.

The decrease in test count is because linting is no longer included in ember test.

There’s a new deprecation warning in the logs that can be fixed by updating Ember
Power Select but when I tried that it caused it to render incorrectly, so I decided to
ignore it for now and address it separately.
2021-02-17 15:01:44 -06:00

30 lines
934 B
Handlebars
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<section class="das-dismissed {{if this.explanationUnderstood 'understood'}}">
{{#if this.explanationUnderstood}}
<h3 {{did-insert this.proceedAutomatically}}>Recommendation dismissed</h3>
{{else}}
<section>
<h3>Recommendation dismissed</h3>
<p>Nomad will not apply these resource change recommendations.</p>
<p>To never get recommendations for this task group again, disable dynamic application sizing in the job definition.</p>
</section>
<section class="actions">
<button
data-test-understood
class='button is-info'
type='button'
{{on 'click' this.understoodClicked}}
>Understood</button>
<label>
<input
type="checkbox"
checked={{this.dismissInTheFuture}}
onchange={{toggle-action 'dismissInTheFuture' this}}
/>
Dont show this again
</label>
</section>
{{/if}}
</section>