Skip to content

Commit

Permalink
feat: PZ-3635 - fix list action running closing dialog (#1612)
Browse files Browse the repository at this point in the history
After finishing the list of subscriptions handled, the dialog has to be
closed again.

Solves: PZ-3635 - fix list action running closing dialog
  • Loading branch information
infonl-marcel authored Aug 22, 2024
1 parent 9d091c9 commit e5c3bd6
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { Injectable, computed, effect, signal } from "@angular/core";
import { MatSnackBarRef } from "@angular/material/snack-bar";
import { UtilService } from "src/app/core/service/util.service";
import { ObjectType } from "src/app/core/websocket/model/object-type";
import { Opcode } from "src/app/core/websocket/model/opcode";
@@ -33,7 +32,6 @@ export class BatchProcessService {
: undefined;
});
private subscriptions: WebsocketListener[] = [];
private snackBarRef: MatSnackBarRef<unknown>;
private options: Options;

constructor(
@@ -80,14 +78,14 @@ export class BatchProcessService {
}

showProgress(message: string) {
const dialogRef = this.utilService.openProgressDialog({
this.utilService.openProgressDialog({
progressPercentage: this.progress,
message,
});
}

stop() {
this.snackBarRef?.dismiss();
this.utilService.closeProgressDialog();
this.clearSubscriptions();
}

0 comments on commit e5c3bd6

Please sign in to comment.