@arsedizioni/ars-utils 21.2.147 → 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',
@@ -1809,9 +1810,11 @@ var ClipperTeamProduct;
1809
1810
  (function (ClipperTeamProduct) {
1810
1811
  ClipperTeamProduct[ClipperTeamProduct["SharedArchive"] = 1004676] = "SharedArchive";
1811
1812
  ClipperTeamProduct[ClipperTeamProduct["SharedCalendar"] = 1004683] = "SharedCalendar";
1813
+ ClipperTeamProduct[ClipperTeamProduct["SharedWorkspace"] = 1013721] = "SharedWorkspace";
1812
1814
  })(ClipperTeamProduct || (ClipperTeamProduct = {}));
1813
1815
  var ClipperTeamProductPermission;
1814
1816
  (function (ClipperTeamProductPermission) {
1817
+ ClipperTeamProductPermission[ClipperTeamProductPermission["SharedWorkspace"] = 55] = "SharedWorkspace";
1815
1818
  ClipperTeamProductPermission[ClipperTeamProductPermission["SharedArchive"] = 56] = "SharedArchive";
1816
1819
  ClipperTeamProductPermission[ClipperTeamProductPermission["SharedCalendar"] = 57] = "SharedCalendar";
1817
1820
  })(ClipperTeamProductPermission || (ClipperTeamProductPermission = {}));
@@ -2263,7 +2266,10 @@ class ClipperService {
2263
2266
  this.login(null, null, true).subscribe({
2264
2267
  next: r => {
2265
2268
  if (!r.success) {
2266
- 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);
2267
2273
  }
2268
2274
  else {
2269
2275
  if ((this.flags & ClipperServiceFlags.DisplayConnectionStateMessages) > 0) {