@arsedizioni/ars-utils 20.3.34 → 20.3.35

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.
@@ -1033,7 +1033,7 @@ declare class ClipperDocumentMenuComponent implements OnInit, OnDestroy {
1033
1033
  private changeDetector;
1034
1034
  private clipperService;
1035
1035
  readonly useSelections: _angular_core.InputSignal<boolean>;
1036
- readonly selectionSource: _angular_core.InputSignal<"none" | "selection" | "bag">;
1036
+ readonly selectionSource: _angular_core.InputSignal<"selection" | "bag" | "none">;
1037
1037
  protected selection: () => ClipperDocumentInfo[];
1038
1038
  readonly parent: _angular_core.InputSignal<ClipperSearchResultManager>;
1039
1039
  readonly item: _angular_core.InputSignal<ClipperDocumentInfo>;
@@ -2127,6 +2127,7 @@ class ClipperService {
2127
2127
  if (!tokenExpired || this.loggedIn()) {
2128
2128
  // Auto login
2129
2129
  this.loggedIn.set(true);
2130
+ this.loggingIn.set(false);
2130
2131
  // Keep alive
2131
2132
  this.setKeepAlive();
2132
2133
  // Initialize channels
@@ -2292,8 +2293,7 @@ class ClipperService {
2292
2293
  : new HttpHeaders()
2293
2294
  .set("Authorization", 'Bearer ' + oauthAccessToken)
2294
2295
  })
2295
- .pipe(catchError(err => {
2296
- this.loggingIn.set(false);
2296
+ .pipe(finalize(() => this.loggingIn.set(false)), catchError(err => {
2297
2297
  return throwError(() => err);
2298
2298
  }), map((r) => {
2299
2299
  if (r.success) {
@@ -2338,8 +2338,7 @@ class ClipperService {
2338
2338
  confirmIdentity(code, flags = ClipperLoginFlags.None) {
2339
2339
  return this.httpClient
2340
2340
  .post(this._serviceUri + '/login/confirm/' + code + '/?flags=' + flags, {})
2341
- .pipe(catchError((err) => {
2342
- this.loggingIn.set(false);
2341
+ .pipe(finalize(() => this.loggingIn.set(false)), catchError((err) => {
2343
2342
  return throwError(() => err);
2344
2343
  }), map((r) => {
2345
2344
  if (r.success) {