Files
threshold-ui/ui/admin/app/controllers/scopes/scope/auth-methods/index.js
T
Randall Morey ae26d588a9 refactor: 💡 primary auth method should be detected on scope
rather than the synthetic `primary` field on auth method
2021-03-26 11:33:43 -04:00

14 lines
326 B
JavaScript

import Controller from '@ember/controller';
export default class ScopesScopeAuthMethodsIndexController extends Controller {
// =attributes
/**
* True if the current scope has a primary auth method set.
* @type {boolean}
*/
get hasPrimaryAuthMethod() {
return this.scopeModel.primary_auth_method_id;
}
}