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:
parent
b31ab712c1
commit
ec5d21be4a
23 changed files with 439 additions and 224 deletions
|
@ -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') !== '';
|
||||
})
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue