feat: 🎸 add icons and clean up state change language

This commit is contained in:
Randall Morey committed 2021-06-03 17:08:40 -04:00
1 parent f7854b642c
commit d0eb41e03b
11 files changed
+45 -81

No files matched your search

+21
View File
@@ -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
/**