add windows interactive notifications

This commit is contained in:
Araxeus
2021-04-08 16:54:46 +03:00
parent 61e7124516
commit e6efddc639
7 changed files with 186 additions and 22 deletions

View File

@ -1,4 +1,5 @@
const {urgencyLevels, setUrgency, setUnpause} = require("./utils");
const {urgencyLevels, setUrgency, setUnpause, setInteractive} = require("./utils");
const is = require("electron-is");
module.exports = (win, options) => [
{
@ -15,5 +16,13 @@ module.exports = (win, options) => [
type: "checkbox",
checked: options.unpauseNotification,
click: (item) => setUnpause(options, item.checked)
}
},
...(is.windows() ?
[{
label: "Interactive",
type: "checkbox",
checked: options.interactive,
click: (item) => setInteractive(options, item.checked)
}] :
[])
];