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:
parent
8fb001422a
commit
bde0091a4a
23 changed files with 118 additions and 367 deletions
|
@ -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;
|
||||
})
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue