Files
threshold-ui/addons/api/addon/models/auth-method.js
T

25 lines
467 B
JavaScript
Raw Normal View History

2020-06-17 18:00:38 -04:00
import GeneratedAuthMethodModel from '../generated/models/auth-method';
import { equal } from '@ember/object/computed';
2020-06-17 18:00:38 -04:00
export default class AuthMethodModel extends GeneratedAuthMethodModel {
// =attributes
2021-03-26 12:47:49 -04:00
/**
* @type {boolean}
*/
@equal('primary', true) isPrimary;
2021-04-01 15:24:49 -04:00
/**
* @type {boolean}
*/
get isPassword() {
return this.type === 'password';
}
/**
* @type {boolean}
*/
get isOIDC() {
return this.type === 'oidc';
}
}