@arsedizioni/ars-utils 20.3.4 → 20.3.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -2088,6 +2088,7 @@ class ClipperService {
|
|
|
2088
2088
|
}
|
|
2089
2089
|
}
|
|
2090
2090
|
else {
|
|
2091
|
+
this.completeLogin(r.value);
|
|
2091
2092
|
if ((this.flags & ClipperServiceFlags.DisplayConnectionStateMessages) > 0) {
|
|
2092
2093
|
this.dialogService.toast('Connesso a Clipper', 1500, 'power');
|
|
2093
2094
|
}
|
|
@@ -2240,9 +2241,12 @@ class ClipperService {
|
|
|
2240
2241
|
.subscribe({
|
|
2241
2242
|
next: r => {
|
|
2242
2243
|
if (!r.success) {
|
|
2244
|
+
localStorage.removeItem('clipper_context');
|
|
2245
|
+
localStorage.removeItem('clipper_remember');
|
|
2243
2246
|
this.dialogService.error(r.message, undefined, "Errore in Clipper");
|
|
2244
2247
|
}
|
|
2245
2248
|
else {
|
|
2249
|
+
this.completeLogin(r.value);
|
|
2246
2250
|
this.dialogService.toast('Connesso a Clipper', 1500, 'power');
|
|
2247
2251
|
if (onSuccess) {
|
|
2248
2252
|
onSuccess();
|
|
@@ -2263,8 +2267,10 @@ class ClipperService {
|
|
|
2263
2267
|
this.logout().subscribe({
|
|
2264
2268
|
next: r => {
|
|
2265
2269
|
if (!r.success) {
|
|
2266
|
-
|
|
2270
|
+
localStorage.removeItem('clipper_context');
|
|
2271
|
+
localStorage.removeItem('clipper_remember');
|
|
2267
2272
|
this.broadcastService.sendMessage(ClipperMessages.LOGIN_CHANGED);
|
|
2273
|
+
this.dialogService.error(r.message, undefined, "Errore in Clipper");
|
|
2268
2274
|
}
|
|
2269
2275
|
else {
|
|
2270
2276
|
this.dialogService.toast('Disconnesso da Clipper', 1500, 'power_off');
|
|
@@ -2272,6 +2278,8 @@ class ClipperService {
|
|
|
2272
2278
|
},
|
|
2273
2279
|
complete: () => {
|
|
2274
2280
|
this.clear();
|
|
2281
|
+
localStorage.removeItem('clipper_context');
|
|
2282
|
+
localStorage.removeItem('clipper_remember');
|
|
2275
2283
|
if (onSuccess) {
|
|
2276
2284
|
onSuccess();
|
|
2277
2285
|
}
|