Commit c143e260 authored by Andrey Vertiprahov's avatar Andrey Vertiprahov
Browse files

Merge branch 'patch-uncol-alarm-sound' into 'master'

alarm sound notification fixed

See merge request !4309
parents fd5a9181 1cf26d4e
Pipeline #26669 passed with stages
in 35 minutes and 16 seconds
......@@ -94,9 +94,8 @@ Ext.define("NOC.fm.alarm.view.grids.SidebarController", {
success: function(response) {
var data = Ext.decode(response.responseText);
if(data.sound) {
if(!this.sounds[data.sound]) {
this.sounds[data.sound] = new Audio(data.sound);
}
Ext.applyIf(this, {sounds: {}});
this.sounds[data.sound] = new Audio(data.sound);
this.sounds[data.sound].volume = data.volume || 1.0;
this.sounds[data.sound].play();
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment