Code review feedback

This commit is contained in:
Michael Lange 2020-06-17 14:56:16 -07:00
parent 3c03ee5621
commit da76edcabd
4 changed files with 5 additions and 9 deletions

View File

@ -8,7 +8,7 @@ export default class Client extends AbstractAbility {
@computed('token.selfTokenPolicies.[]')
get policiesIncludeAgentReadOrWrite() {
const policies = (this.get('token.selfTokenPolicies') || [])
const policies = (get(this, 'token.selfTokenPolicies') || [])
.toArray()
.map(policy => get(policy, 'rulesJSON.Agent.Policy'))
.compact();

View File

@ -3,10 +3,12 @@ import Component from '@ember/component';
import { computed } from '@ember/object';
import { assert } from '@ember/debug';
import { tagName } from '@ember-decorators/component';
import classic from 'ember-classic-decorator';
import Log from 'nomad-ui/utils/classes/log';
const LEVELS = ['error', 'warn', 'info', 'debug', 'trace'];
@classic
@tagName('')
export default class AgentMonitor extends Component {
@service token;

View File

@ -1,9 +1,6 @@
import Controller from '@ember/controller';
import classic from 'ember-classic-decorator';
@classic
export default class ClientMonitorController extends Controller {
queryParams = [{ level: 'level' }];
queryParams = ['level'];
level = 'info';
}

View File

@ -1,9 +1,6 @@
import Controller from '@ember/controller';
import classic from 'ember-classic-decorator';
@classic
export default class ServerMonitorController extends Controller {
queryParams = [{ level: 'level' }];
queryParams = ['level'];
level = 'info';
}