summaryrefslogtreecommitdiffstats
path: root/models/activities.js
diff options
context:
space:
mode:
authorSam X. Chen <sam.xi.chen@gmail.com>2019-09-25 11:48:20 -0400
committerSam X. Chen <sam.xi.chen@gmail.com>2019-09-25 11:48:20 -0400
commitd5cff1ec48bf9ab13a32576e7495ae54c3d2c0f7 (patch)
tree54a3629f53f18ad69cce81aaac626ae39d582829 /models/activities.js
parent8d7714760c0e532d1f3d17d451dd91ba74e966e8 (diff)
downloadwekan-d5cff1ec48bf9ab13a32576e7495ae54c3d2c0f7.tar.gz
wekan-d5cff1ec48bf9ab13a32576e7495ae54c3d2c0f7.tar.bz2
wekan-d5cff1ec48bf9ab13a32576e7495ae54c3d2c0f7.zip
Add feature: differentiating new due time and modified due time
Diffstat (limited to 'models/activities.js')
-rw-r--r--models/activities.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/models/activities.js b/models/activities.js
index a9c9768f..cb1dddaf 100644
--- a/models/activities.js
+++ b/models/activities.js
@@ -242,8 +242,8 @@ if (Meteor.isServer) {
(!activity.timeKey || activity.timeKey === 'dueAt') &&
activity.timeValue
) {
- // due time reminder
- title = 'act-withDue';
+ // due time reminder, if it doesn't have old value, it's a brand new set, need some differentiation
+ title = activity.timeOldValue ? 'act-withDue' : 'act-newDue';
}
['timeValue', 'timeOldValue'].forEach(key => {
// copy time related keys & values to params