@arsedizioni/ars-utils 19.3.21 → 19.3.23
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.
- package/fesm2022/arsedizioni-ars-utils-clipper.common.mjs +15 -17
- package/fesm2022/arsedizioni-ars-utils-clipper.common.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-evolution.common.mjs +14 -16
- package/fesm2022/arsedizioni-ars-utils-evolution.common.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-support.common.mjs +11 -15
- package/fesm2022/arsedizioni-ars-utils-support.common.mjs.map +1 -1
- package/package.json +9 -9
|
@@ -2175,25 +2175,23 @@ class ClipperService {
|
|
|
2175
2175
|
this.broadcastServiceSubscription = this.broadcastService.getMessage()
|
|
2176
2176
|
.subscribe(message => {
|
|
2177
2177
|
if (message.id === ClipperMessages.LOGIN_CHANGED) {
|
|
2178
|
-
|
|
2179
|
-
|
|
2180
|
-
|
|
2181
|
-
if (
|
|
2182
|
-
|
|
2183
|
-
this.dialogService.error(r.message, null, "Errore di Clipper");
|
|
2184
|
-
}
|
|
2178
|
+
this.login(message.data.email, message.data.password, true, message.data.oauth, message.data.oauthAccessToken).subscribe({
|
|
2179
|
+
next: r => {
|
|
2180
|
+
if (!r.success) {
|
|
2181
|
+
if (r.message) {
|
|
2182
|
+
this.dialogService.error(r.message, null, "Errore di Clipper");
|
|
2185
2183
|
}
|
|
2186
|
-
|
|
2187
|
-
|
|
2188
|
-
|
|
2189
|
-
|
|
2190
|
-
// Load bag
|
|
2191
|
-
this.loadBag();
|
|
2184
|
+
}
|
|
2185
|
+
else {
|
|
2186
|
+
if ((this.flags & ClipperServiceFlags.DisplayConnectionStateMessages) > 0) {
|
|
2187
|
+
this.dialogService.toast('Connesso a Clipper', 1500, 'power');
|
|
2192
2188
|
}
|
|
2193
|
-
|
|
2194
|
-
|
|
2195
|
-
|
|
2196
|
-
|
|
2189
|
+
// Load bag
|
|
2190
|
+
this.loadBag();
|
|
2191
|
+
}
|
|
2192
|
+
},
|
|
2193
|
+
error: () => { console.error("Clipper non disponibile."); } // Avoid unwanted errors on client
|
|
2194
|
+
});
|
|
2197
2195
|
}
|
|
2198
2196
|
else if (message.id === ClipperMessages.LOGOUT) {
|
|
2199
2197
|
if (this.loggedIn()) {
|