mirror of
https://github.com/wekan/wekan.git
synced 2025-09-22 01:50:48 +02:00
Feature enhancement: Allow wekan master have more flexiblity on setting up due reminder
This commit is contained in:
parent
e5f0dd7dd8
commit
020b663836
2 changed files with 3 additions and 3 deletions
|
@ -1583,14 +1583,14 @@ const findDueCards = days => {
|
|||
if (!days.map) days = [days];
|
||||
days.map(day => {
|
||||
let args = [];
|
||||
if (day == 0) {
|
||||
if (day === 0) {
|
||||
args = [then(0), then(1), 'duenow'];
|
||||
} else if (day > 0) {
|
||||
args = [then(1), then(day), 'almostdue'];
|
||||
} else {
|
||||
args = [then(day), now, 'pastdue'];
|
||||
}
|
||||
seekDue.apply(null, args);
|
||||
seekDue(...args);
|
||||
});
|
||||
};
|
||||
const addCronJob = _.debounce(
|
||||
|
|
|
@ -108,7 +108,7 @@ DESCRIPTION_BIGEVENTS_PATTERN="Big events pattern: Notify always due etc regardl
|
|||
DEFAULT_BIGEVENTS_PATTERN="NONE"
|
||||
KEY_BIGEVENTS_PATTERN="bigevents-pattern"
|
||||
|
||||
DESCRIPTION_NOTIFY_DUE_DAYS_BEFORE_AND_AFTER="Notify due days, default 2 days before and after. 0 = due notifications disabled. Default: 2"
|
||||
DESCRIPTION_NOTIFY_DUE_DAYS_BEFORE_AND_AFTER="Notify due days, accepts ',' delimited string, i.e. 2,0 means notify will be sent out 2 days before and right on due day. Default: empty"
|
||||
DEFAULT_NOTIFY_DUE_DAYS_BEFORE_AND_AFTER=""
|
||||
KEY_NOTIFY_DUE_DAYS_BEFORE_AND_AFTER="notify-due-days-before-and-after"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue