chore: add account isPassword field

This commit is contained in:
Randall Morey committed 2020-10-07 12:37:41 -04:00
1 parent 220c8d5683
commit 65a8a0bdc6
1 file changed
+6
+6
View File
@@ -1,6 +1,7 @@
import GeneratedAccountModel from '../generated/models/account';
import { fragment } from 'ember-data-model-fragments/attributes';
import { computed } from '@ember/object';
import { equal } from '@ember/object/computed';
export default class AccountModel extends GeneratedAccountModel {
@@ -12,6 +13,11 @@ export default class AccountModel extends GeneratedAccountModel {
*/
@fragment('fragment-account-attributes', { defaultValue: {} }) attributes;
/**
* @type {boolean}
*/
@equal('type', 'password') isPassword;
/**
* Convenience for getting username in account.
* @type {string}