Commit 9c0f7f54 by Torkel Ödegaard

fix(alerts): added alert listener for appEvents

parent 53fbb8b0
...@@ -27,10 +27,9 @@ export class AlertSrv { ...@@ -27,10 +27,9 @@ export class AlertSrv {
this.set(alert[0], alert[1], 'success', 3000); this.set(alert[0], alert[1], 'success', 3000);
}, this.$rootScope); }, this.$rootScope);
appEvents.on('alert-error', options => { appEvents.on('alert-warning', options => this.set(options[0], options[1], 'warning', 5000));
this.set(options[0], options[1], 'error', 7000); appEvents.on('alert-success', options => this.set(options[0], options[1], 'success', 3000));
}); appEvents.on('alert-error', options => this.set(options[0], options[1], 'error', 7000));
appEvents.on('confirm-modal', this.showConfirmModal.bind(this)); appEvents.on('confirm-modal', this.showConfirmModal.bind(this));
} }
......
Markdown is supported
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