Browse Source

fix(modal): fixed duplicate confirm modal issue

Torkel Ödegaard 9 năm trước cách đây
mục cha
commit
ae8fabdad3

+ 0 - 4
public/app/core/services/alert_srv.ts

@@ -28,10 +28,6 @@ export class AlertSrv {
     }, this.$rootScope);
     }, this.$rootScope);
 
 
     appEvents.on('confirm-modal', this.showConfirmModal.bind(this));
     appEvents.on('confirm-modal', this.showConfirmModal.bind(this));
-
-    this.$rootScope.onAppEvent('confirm-modal', (e, data) => {
-      this.showConfirmModal(data);
-    }, this.$rootScope);
   }
   }
 
 
   set(title, text, severity, timeout) {
   set(title, text, severity, timeout) {