Commit 1cf26d4e authored by uncol's avatar uncol
Browse files

alarm sound notification fixed

parent fd5a9181
Pipeline #26666 passed with stages
in 27 minutes and 43 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