tiborm commented on a change in pull request #1514: METRON-2190: [UI] Alerts 
UI: Indicating loading and preventing parallel requests
URL: https://github.com/apache/metron/pull/1514#discussion_r327005089
 
 

 ##########
 File path: 
metron-interface/metron-alerts/src/app/alerts/alerts-list/alerts-list.component.ts
 ##########
 @@ -460,69 +472,30 @@ export class AlertsListComponent implements OnInit, 
OnDestroy {
   }
 
   showConfigureTable() {
-    this.saveRefreshState();
+    this.autoPollingSvc.setSuppression(true);
     this.router.navigateByUrl('/alerts-list(dialog:configure-table)');
   }
 
   showDetails(alert: Alert) {
     this.selectedAlerts = [];
     this.selectedAlerts = [alert];
-    this.saveRefreshState();
+    this.autoPollingSvc.setSuppression(true);
     let sourceType = alert.source[this.globalConfig['source.type.field']];
     let url = '/alerts-list(dialog:details/' + sourceType + '/' + 
alert.source.guid + '/' + alert.index + ')';
     this.router.navigateByUrl(url);
   }
 
-  saveRefreshState() {
-    this.lastIsRefreshPausedValue = this.isRefreshPaused;
-    this.tryStopPolling();
-  }
-
-  pause() {
-    this.isRefreshPaused = true;
-    this.tryStopPolling();
-  }
-
-  resume() {
-    this.isRefreshPaused = false;
-    this.tryStartPolling();
-  }
-
   showSavedSearches() {
 
 Review comment:
   Moved to auto-polling.service/component.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to