Add feature: differentiating new due time and modified due time

This commit is contained in:
Sam X. Chen 2019-09-25 11:48:20 -04:00
parent 8d7714760c
commit d5cff1ec48
2 changed files with 3 additions and 2 deletions

View file

@ -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