Commit 1f1a2f24 authored by Mathias Chouet's avatar Mathias Chouet :spaghetti:
Browse files

Fix #365 - disable snwackbars during session emptying

Showing with 6 additions and 0 deletions
+6 -0
......@@ -623,6 +623,10 @@ export class AppComponent implements OnInit, OnDestroy, Observer {
}
public doEmptySession() {
// temporarily disable snackbars
const oldNotifState = this.appSetupService.enableNotifications;
this.appSetupService.enableNotifications = false;
// close all calculators
for (const c of this._calculators) {
const form = this.formulaireService.getFormulaireFromId(c.uid);
this.formulaireService.requestCloseForm(form.uid);
......@@ -630,6 +634,8 @@ export class AppComponent implements OnInit, OnDestroy, Observer {
// just to be sure, get rid of any Nub possibly stuck in session without any form attached
Session.getInstance().clear();
Session.getInstance().documentation = "";
// restore snackbars
this.appSetupService.enableNotifications = oldNotifState;
}
public loadSession() {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment