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

Reafctor client side (EJS) constants

This commit is contained in:
McMatts 2018-04-20 14:38:10 +01:00
parent 8fb001422a
commit bde0091a4a
23 changed files with 118 additions and 367 deletions

View file

@ -25,6 +25,7 @@ export default Model.extend({
versioned: attr('string'),
drafted: attr('string'),
archived: attr('string'),
published: attr('string'),
hasContributed: computed('contributed', function () {
return this.get('contributed').length > 0;
@ -49,5 +50,8 @@ export default Model.extend({
}),
hasArchived: computed('archived', function () {
return this.get('archived').length > 0;
}),
hasPublished: computed('published', function () {
return this.get('published').length > 0;
})
});