misc: add css classes to some notification popups to allow targetting them with css themes

This commit is contained in:
jean-emmanuel 2023-03-10 10:09:06 +01:00
parent ccf3613424
commit 23ca4ac9a7
5 changed files with 6 additions and 1 deletions

View file

@ -63,6 +63,7 @@ module.exports = {
notifications.add({
icon: 'wifi',
class: 'client-connected',
message: locales('loading_newclient')
})

View file

@ -91,6 +91,7 @@ class Ipc extends EventEmitter {
if (notifications && this.disconnected) notifications.add({
icon: 'wifi',
class: 'server-connected',
message: locales('server_connected'),
id: 'ipc_state'
})

View file

@ -150,6 +150,7 @@ var StateManager = class StateManager {
this.set(state, send)
notifications.add({
icon: 'sliders-h',
class: 'state-recall',
message: locales('state_recallsuccess')
})
} catch(e) {

View file

@ -251,6 +251,7 @@ module.exports = {
ipc.send('notify', {
icon: 'save',
locale: 'remotesave_success',
class: 'session-save',
message: ' ('+ path.basename(data.path) +')'
}, clientId)