mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-07-07 16:11:14 +00:00
Merge pull request #2360 from rejas/issue_2228
Hide alert overlay when dismissed manually
This commit is contained in:
commit
9858d5b495
@ -45,6 +45,7 @@ _This release is scheduled to be released on 2021-01-01._
|
|||||||
- Fix non-fullday recurring rule processing (#2216)
|
- Fix non-fullday recurring rule processing (#2216)
|
||||||
- Catch errors when parsing calendar data with ical (#2022)
|
- Catch errors when parsing calendar data with ical (#2022)
|
||||||
- Corrected logic for timeFormat "relative" and "absolute"
|
- Corrected logic for timeFormat "relative" and "absolute"
|
||||||
|
- Fix Default Alert Module does not hide black overlay when alert is dismissed manually (#2228)
|
||||||
|
|
||||||
## [2.13.0] - 2020-10-01
|
## [2.13.0] - 2020-10-01
|
||||||
|
|
||||||
|
@ -100,10 +100,13 @@ Module.register("alert", {
|
|||||||
message: image + message,
|
message: image + message,
|
||||||
effect: this.config.alert_effect,
|
effect: this.config.alert_effect,
|
||||||
ttl: params.timer,
|
ttl: params.timer,
|
||||||
|
onClose: () => this.hide_alert(sender),
|
||||||
al_no: "ns-alert"
|
al_no: "ns-alert"
|
||||||
});
|
});
|
||||||
|
|
||||||
//Show alert
|
//Show alert
|
||||||
this.alerts[sender.name].show();
|
this.alerts[sender.name].show();
|
||||||
|
|
||||||
//Add timer to dismiss alert and overlay
|
//Add timer to dismiss alert and overlay
|
||||||
if (params.timer) {
|
if (params.timer) {
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user