@veloceapps/sdk 3.1.21 → 3.1.22
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/fesm2015/veloce-sdk.js
CHANGED
@@ -21,7 +21,7 @@ import * as i7 from '@angular/forms';
|
|
21
21
|
import { FormGroup, FormControl, ReactiveFormsModule, FormsModule } from '@angular/forms';
|
22
22
|
import * as i5 from 'primeng/inputnumber';
|
23
23
|
import { InputNumberModule } from 'primeng/inputnumber';
|
24
|
-
import { map, filter, shareReplay, startWith, distinctUntilChanged, BehaviorSubject, Subject, combineLatest, takeUntil, tap, finalize,
|
24
|
+
import { map, filter, shareReplay, startWith, distinctUntilChanged, BehaviorSubject, Subject, combineLatest, takeUntil, tap, finalize, of, switchMap, catchError, from, first as first$1 } from 'rxjs';
|
25
25
|
import * as i1$1 from '@angular/router';
|
26
26
|
import { NavigationEnd, NavigationStart, NavigationCancel, NavigationError, RouterModule } from '@angular/router';
|
27
27
|
import * as i2$2 from 'primeng/api';
|
@@ -478,7 +478,7 @@ class FlowHeaderComponent {
|
|
478
478
|
.pipe(tap(({ quoteId }) => {
|
479
479
|
this.quoteDraftService.hasUnsavedChanges = false;
|
480
480
|
this.back(quoteId);
|
481
|
-
}), finalize(() => this.isSaveInProgress$.next(false)))
|
481
|
+
}), finalize(() => this.isSaveInProgress$.next(false)), takeUntil(this.destroyed$))
|
482
482
|
.subscribe();
|
483
483
|
}
|
484
484
|
submitButtonClickHandler() {
|
@@ -497,9 +497,9 @@ class FlowHeaderComponent {
|
|
497
497
|
this.isSubmitInProgress$.next(true);
|
498
498
|
this.quoteApiService
|
499
499
|
.submitQuote(quoteDraft)
|
500
|
-
.pipe(
|
501
|
-
this.contextService.update({ properties: updatedQuoteDraft.context.properties });
|
500
|
+
.pipe(tap(({ quoteId }) => {
|
502
501
|
this.quoteDraftService.hasUnsavedChanges = false;
|
502
|
+
this.back(quoteId);
|
503
503
|
}), finalize(() => this.isSubmitInProgress$.next(false)), takeUntil(this.destroyed$))
|
504
504
|
.subscribe();
|
505
505
|
}
|