mirror of
https://github.com/documize/community.git
synced 2025-07-24 23:59:47 +02:00
Dashboard activity for versioned, archived, drafted events
This commit is contained in:
parent
7eb99c52f2
commit
6ac035f196
1 changed files with 13 additions and 1 deletions
|
@ -22,6 +22,9 @@ export default Model.extend({
|
||||||
created: attr('string'),
|
created: attr('string'),
|
||||||
approved: attr('string'),
|
approved: attr('string'),
|
||||||
rejected: attr('string'),
|
rejected: attr('string'),
|
||||||
|
versioned: attr('string'),
|
||||||
|
drafted: attr('string'),
|
||||||
|
archived: attr('string'),
|
||||||
|
|
||||||
hasContributed: computed('contributed', function () {
|
hasContributed: computed('contributed', function () {
|
||||||
return this.get('contributed').length > 0;
|
return this.get('contributed').length > 0;
|
||||||
|
@ -37,5 +40,14 @@ export default Model.extend({
|
||||||
}),
|
}),
|
||||||
hasRejected: computed('rejected', function () {
|
hasRejected: computed('rejected', function () {
|
||||||
return this.get('rejected').length > 0;
|
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;
|
||||||
|
})
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue