1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-24 07:39:43 +02:00

[WIP] using new components

This commit is contained in:
Harvey Kandola 2017-11-17 11:31:54 +00:00
parent b31ab712c1
commit ec5d21be4a
23 changed files with 439 additions and 224 deletions

View file

@ -11,6 +11,7 @@
import Model from 'ember-data/model';
import attr from 'ember-data/attr';
import { computed } from '@ember/object';
export default Model.extend({
orgId: attr('string'),
@ -20,5 +21,12 @@ export default Model.extend({
sequence: attr('number', { defaultValue: 99 }),
pin: attr('string'),
created: attr(),
revised: attr()
revised: attr(),
isSpace: computed('documentId', function() {
return this.get('documentId') === '';
}),
isDocument: computed('documentId', function() {
return this.get('documentId') !== '';
})
});