Merge branch 'develop' into ICU-350-users-crud

This commit is contained in:
Randall Morey authored and GitHub committed 2020-06-25 10:23:38 -04:00
commit fb6aeada0a
8 files changed
+33 -6

No files matched your search

+10
View File
@@ -4,6 +4,16 @@ import { computed } from '@ember/object';
export default class BaseModel extends Model {
// =attributes
/**
* Names are optional on models in our API. Thus we need to fallback on ID
* for display purposes.
* @type {string}
*/
@computed('name', 'id')
get displayName() {
return this.name || this.id;
}
/**
* @type {boolean}
*/