1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-23 15:19:42 +02:00

Dashboard activity for versioned, archived, drafted events

This commit is contained in:
sauls8t 2018-03-19 16:24:58 +00:00
parent 7eb99c52f2
commit 6ac035f196

View file

@ -22,6 +22,9 @@ export default Model.extend({
created: attr('string'),
approved: attr('string'),
rejected: attr('string'),
versioned: attr('string'),
drafted: attr('string'),
archived: attr('string'),
hasContributed: computed('contributed', function () {
return this.get('contributed').length > 0;
@ -37,5 +40,14 @@ export default Model.extend({
}),
hasRejected: computed('rejected', function () {
return this.get('rejected').length > 0;
})
}),
hasVersioned: computed('versioned', function () {
return this.get('versioned').length > 0;
}),
hasDrafted: computed('drafted', function () {
return this.get('drafted').length > 0;
}),
hasArchived: computed('archived', function () {
return this.get('archived').length > 0;
})
});