Code review feedback
This commit is contained in:
parent
3c03ee5621
commit
da76edcabd
|
@ -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();
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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';
|
||||
}
|
||||
|
|
|
@ -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';
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue