Просмотр исходного кода

fix(modal): fixed duplicate confirm modal issue

Torkel Ödegaard 9 лет назад
Родитель
Сommit
ae8fabdad3
1 измененных файлов с 0 добавлено и 4 удалено
  1. 0 4
      public/app/core/services/alert_srv.ts

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

@@ -28,10 +28,6 @@ export class AlertSrv {
     }, this.$rootScope);
 
     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) {