@arsedizioni/ars-utils 21.2.148 → 21.2.150

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.
@@ -17,6 +17,7 @@ const ClipperMessages = {
17
17
  LOGIN_COMPLETED: '§clipper-login-completed',
18
18
  LOGOUT_COMPLETED: '§clipper-logout-completed',
19
19
  LOGIN_PENDING: '§clipper-login-pending',
20
+ LOGIN_FAILED: '§clipper-login-failed',
20
21
  LOGOUT: '§clipper-logout',
21
22
  // Document
22
23
  DOCUMENT_READ: '$clipper-document-read',
@@ -2265,7 +2266,10 @@ class ClipperService {
2265
2266
  this.login(null, null, true).subscribe({
2266
2267
  next: r => {
2267
2268
  if (!r.success) {
2268
- this.dialogService.error("Le credenziali di accesso sono cambiate o non sono più valide. Esegui un nuovo accesso.", undefined, "Errore di Clipper");
2269
+ if ((this.flags & ClipperServiceFlags.DisplayConnectionStateMessages) > 0) {
2270
+ this.dialogService.error("Le credenziali di accesso sono cambiate o non sono più valide. Esegui un nuovo accesso.", undefined, "Errore di Clipper");
2271
+ }
2272
+ this.broadcastService.sendMessage(ClipperMessages.LOGIN_FAILED);
2269
2273
  }
2270
2274
  else {
2271
2275
  if ((this.flags & ClipperServiceFlags.DisplayConnectionStateMessages) > 0) {