Skip to content

Commit 3f17c66

Browse files
committed
fixed canceling auto refresh on run results page
1 parent c0bf6e3 commit 3f17c66

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

ui/src/app/run-results/run-results.component.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,14 +198,20 @@ export class RunResultsComponent implements OnInit, OnDestroy {
198198
})
199199
}
200200

201-
ngOnDestroy() {
201+
cancelRefreshTimer() {
202202
if (this.refreshTimer) {
203203
clearTimeout(this.refreshTimer)
204204
this.refreshTimer = null
205205
}
206206
}
207207

208+
ngOnDestroy() {
209+
this.cancelRefreshTimer()
210+
}
211+
208212
refreshPage() {
213+
this.cancelRefreshTimer()
214+
209215
switch (this.activeTabIdx) {
210216
case 0: // jobs
211217
this.loadJobsLazy({ first: 0, rows: 30 })

0 commit comments

Comments
 (0)