Files
threshold-ui/ui/admin/app/components/form/role/index.js
T

18 lines
439 B
JavaScript
Raw Normal View History

2020-11-03 12:01:46 -05:00
import Component from '@glimmer/component';
import { computed } from '@ember/object';
export default class FormRoleGrantsComponent extends Component {
// =attributes
/**
* Returns the selected grant scope model.
* @type {ScopeModel}
*/
@computed('args.model.{store,grant_scope_id}')
get selectedGrantScope() {
2020-11-16 15:08:59 -05:00
return this.args.model.store.peekRecord(
'scope',
this.args.model.grant_scope_id
);
2020-11-03 12:01:46 -05:00
}
}