2023-03-01 09:39:41 -06:00
|
|
|
/**
|
|
|
|
|
* Copyright (c) HashiCorp, Inc.
|
|
|
|
|
* SPDX-License-Identifier: MPL-2.0
|
|
|
|
|
*/
|
|
|
|
|
|
2021-03-26 09:41:07 -04:00
|
|
|
import Controller from '@ember/controller';
|
|
|
|
|
|
|
|
|
|
export default class ScopesScopeAuthMethodsIndexController extends Controller {
|
2021-03-26 11:33:43 -04:00
|
|
|
// =attributes
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* True if the current scope has a primary auth method set.
|
|
|
|
|
* @type {boolean}
|
|
|
|
|
*/
|
2021-03-26 09:41:07 -04:00
|
|
|
get hasPrimaryAuthMethod() {
|
2021-03-30 10:34:15 -04:00
|
|
|
return Boolean(this.scopeModel.primary_auth_method_id);
|
2021-03-26 09:41:07 -04:00
|
|
|
}
|
|
|
|
|
}
|