open-nomad/ui/app/templates/servers/server/monitor.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

13 lines
354 B
Handlebars

{{title "Server " this.model.name}}
<ServerSubnav @server={{this.model}} />
<section class="section is-full-width">
{{#if (can "read agent")}}
<AgentMonitor
@level={{this.level}}
@server={{this.model}}
@onLevelChange={{action (mut this.level)}} />
{{else}}
<ForbiddenMessage @permission="agent:read" />
{{/if}}
</section>