Skip to content

Commit

Permalink
adds android_channel_id
Browse files Browse the repository at this point in the history
  • Loading branch information
GniN committed Jan 13, 2024
1 parent ec4d8d4 commit 999f48f
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions webui/src/components/PushNotification.vue
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,16 @@ export default {
},
save: function() {
EventBus.$emit("loading", true)
// Sets android_channel_id before sending to BE
this.app.devices.forEach(device => {
// see [soundOptions]
if (device.sound == '0') {
device.android_channel_id = 'wlanthermo_channel_default_id'
} else if (device.sound == '1') {
device.android_channel_id = 'wlanthermo_channel_bell_id'
}
});
const requestObj = Object.assign({}, { telegram: this.telegram, pushover: this.pushover, app: this.app })
this.axios.post('/setpush', requestObj).then(() => {
EventBus.$emit("loading", false)
Expand Down

0 comments on commit 999f48f

Please sign in to comment.