feat: 🎸 add icons and clean up state change language
This commit is contained in:
11 files changed
+45
-81
No files matched your search
@@ -1,15 +0,0 @@
|
||||
/**
|
||||
* Empty auth method definition
|
||||
*/
|
||||
export class AuthMethod {}
|
||||
|
||||
/**
|
||||
* Simple OIDC auth method definition to contain possible oidc states.
|
||||
* @property states {[string]} states
|
||||
*/
|
||||
export class AuthMethodOIDC extends AuthMethod {
|
||||
/**
|
||||
* Possible auth-method statuses
|
||||
*/
|
||||
static states = ['inactive', 'active-private', 'active-public'];
|
||||
}
|
||||
@@ -75,6 +75,27 @@ export default class AuthMethodModel extends GeneratedAuthMethodModel {
|
||||
return this.type === 'oidc';
|
||||
}
|
||||
|
||||
/**
|
||||
* @type {boolean}
|
||||
*/
|
||||
get isInactive() {
|
||||
return this.attributes.state === 'inactive';
|
||||
}
|
||||
|
||||
/**
|
||||
* @type {boolean}
|
||||
*/
|
||||
get isPrivate() {
|
||||
return this.attributes.state === 'active-private';
|
||||
}
|
||||
|
||||
/**
|
||||
* @type {boolean}
|
||||
*/
|
||||
get isPublic() {
|
||||
return this.attributes.state === 'active-public';
|
||||
}
|
||||
|
||||
// =methods
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user