@indigina/kendo 2.0.24 → 2.0.26
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.
|
@@ -1080,8 +1080,12 @@ class HttpService {
|
|
|
1080
1080
|
delete(path) {
|
|
1081
1081
|
return this.httpClient.delete(this.createUrl(path)).pipe(tap(() => this.showSuccessMessage('ToastrMessages.RemovedSuccessfully')), catchError((err) => this.handleServerError(err)));
|
|
1082
1082
|
}
|
|
1083
|
-
post(path, data, successTranslateMessage = null) {
|
|
1084
|
-
return this.httpClient.post(this.createUrl(path), data).pipe(tap(() =>
|
|
1083
|
+
post(path, data, showSuccessMessage = true, successTranslateMessage = null) {
|
|
1084
|
+
return this.httpClient.post(this.createUrl(path), data).pipe(tap(() => {
|
|
1085
|
+
if (showSuccessMessage) {
|
|
1086
|
+
this.showSuccessMessage(successTranslateMessage ?? 'ToastrMessages.SavedSuccessfully');
|
|
1087
|
+
}
|
|
1088
|
+
}), catchError((err) => this.handleServerError(err)));
|
|
1085
1089
|
}
|
|
1086
1090
|
put(path, data, successTranslateMessage = null, showSuccessMessage = true) {
|
|
1087
1091
|
return this.httpClient.put(this.createUrl(path), data).pipe(tap(() => {
|
|
@@ -2077,10 +2081,10 @@ class AzureLoginCallbackComponent {
|
|
|
2077
2081
|
this.router.navigate(['home']);
|
|
2078
2082
|
}
|
|
2079
2083
|
});
|
|
2080
|
-
this.msalBroadcastService.msalSubject$.pipe(filter(({ eventType }) => eventType === EventType.ACQUIRE_TOKEN_FAILURE
|
|
2084
|
+
this.msalBroadcastService.msalSubject$.pipe(filter(({ eventType }) => eventType === EventType.ACQUIRE_TOKEN_FAILURE)).subscribe(() => this.authService.logoutRedirect());
|
|
2081
2085
|
}
|
|
2082
2086
|
logout() {
|
|
2083
|
-
this.authService.
|
|
2087
|
+
this.authService.logoutRedirect();
|
|
2084
2088
|
}
|
|
2085
2089
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: AzureLoginCallbackComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2086
2090
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.1.3", type: AzureLoginCallbackComponent, isStandalone: true, selector: "lib-azure-login", ngImport: i0, template: '', isInline: true }); }
|