From 6ac035f1960c94f2f4ffce532036c74f5ecc65b2 Mon Sep 17 00:00:00 2001 From: sauls8t Date: Mon, 19 Mar 2018 16:24:58 +0000 Subject: [PATCH] Dashboard activity for versioned, archived, drafted events --- gui/app/models/user-activity.js | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/gui/app/models/user-activity.js b/gui/app/models/user-activity.js index a84add03..02358db3 100644 --- a/gui/app/models/user-activity.js +++ b/gui/app/models/user-activity.js @@ -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; + }) });