mirror of
https://github.com/wekan/wekan.git
synced 2025-12-17 07:50:12 +01:00
Add feature: differentiating new due time and modified due time
This commit is contained in:
parent
8d7714760c
commit
d5cff1ec48
2 changed files with 3 additions and 2 deletions
|
|
@ -731,6 +731,7 @@
|
||||||
"almostdue": "current due time %s is approaching",
|
"almostdue": "current due time %s is approaching",
|
||||||
"pastdue": "current due time %s is past",
|
"pastdue": "current due time %s is past",
|
||||||
"duenow": "current due time %s is today",
|
"duenow": "current due time %s is today",
|
||||||
|
"act-newDue": "__card__ has 1st due reminder [__board__]",
|
||||||
"act-withDue": "__card__ due reminders [__board__]",
|
"act-withDue": "__card__ due reminders [__board__]",
|
||||||
"act-almostdue": "was reminding the current due (__timeValue__) of __card__ is approaching",
|
"act-almostdue": "was reminding the current due (__timeValue__) of __card__ is approaching",
|
||||||
"act-pastdue": "was reminding the current due (__timeValue__) of __card__ is past",
|
"act-pastdue": "was reminding the current due (__timeValue__) of __card__ is past",
|
||||||
|
|
|
||||||
|
|
@ -242,8 +242,8 @@ if (Meteor.isServer) {
|
||||||
(!activity.timeKey || activity.timeKey === 'dueAt') &&
|
(!activity.timeKey || activity.timeKey === 'dueAt') &&
|
||||||
activity.timeValue
|
activity.timeValue
|
||||||
) {
|
) {
|
||||||
// due time reminder
|
// due time reminder, if it doesn't have old value, it's a brand new set, need some differentiation
|
||||||
title = 'act-withDue';
|
title = activity.timeOldValue ? 'act-withDue' : 'act-newDue';
|
||||||
}
|
}
|
||||||
['timeValue', 'timeOldValue'].forEach(key => {
|
['timeValue', 'timeOldValue'].forEach(key => {
|
||||||
// copy time related keys & values to params
|
// copy time related keys & values to params
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue