-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
`Fixes #3465` Add config option `specialDayUnique` that defaults to `false` and causes special day compliments to be added to the existing compliments array. Setting this option to `true` will only show the compliments that have been configured for that day. --------- Co-authored-by: Veeck <github@veeck.de> Co-authored-by: veeck <michael.veeck@nebenan.de> Co-authored-by: Karsten Hassel <hassel@gmx.de>
- Loading branch information
1 parent
3d9d72e
commit aefb3a0
Showing
5 changed files
with
75 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
tests/configs/modules/compliments/compliments_specialDayUnique_false.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
let config = { | ||
modules: [ | ||
{ | ||
module: "compliments", | ||
position: "middle_center", | ||
config: { | ||
specialDayUnique: false, | ||
compliments: { | ||
anytime: [ | ||
"Typical message 1", | ||
"Typical message 2", | ||
"Typical message 3" | ||
], | ||
"....-..-..": ["Special day message"] | ||
} | ||
} | ||
} | ||
] | ||
}; | ||
|
||
/*************** DO NOT EDIT THE LINE BELOW ***************/ | ||
if (typeof module !== "undefined") { module.exports = config; } |
22 changes: 22 additions & 0 deletions
22
tests/configs/modules/compliments/compliments_specialDayUnique_true.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
let config = { | ||
modules: [ | ||
{ | ||
module: "compliments", | ||
position: "middle_center", | ||
config: { | ||
specialDayUnique: true, | ||
compliments: { | ||
anytime: [ | ||
"Typical message 1", | ||
"Typical message 2", | ||
"Typical message 3" | ||
], | ||
"....-..-..": ["Special day message"] | ||
} | ||
} | ||
} | ||
] | ||
}; | ||
|
||
/*************** DO NOT EDIT THE LINE BELOW ***************/ | ||
if (typeof module !== "undefined") { module.exports = config; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters