@indigina/kendo 2.0.18 → 2.0.19
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.
|
@@ -1083,8 +1083,12 @@ class HttpService {
|
|
|
1083
1083
|
post(path, data, successTranslateMessage = null) {
|
|
1084
1084
|
return this.httpClient.post(this.createUrl(path), data).pipe(tap(() => this.showSuccessMessage(successTranslateMessage ?? 'ToastrMessages.SavedSuccessfully')), catchError((err) => this.handleServerError(err)));
|
|
1085
1085
|
}
|
|
1086
|
-
put(path, data, successTranslateMessage = null) {
|
|
1087
|
-
return this.httpClient.put(this.createUrl(path), data).pipe(tap(() =>
|
|
1086
|
+
put(path, data, successTranslateMessage = null, showSuccessMessage = true) {
|
|
1087
|
+
return this.httpClient.put(this.createUrl(path), data).pipe(tap(() => {
|
|
1088
|
+
if (showSuccessMessage) {
|
|
1089
|
+
this.showSuccessMessage(successTranslateMessage ?? 'ToastrMessages.SavedSuccessfully');
|
|
1090
|
+
}
|
|
1091
|
+
}), catchError((err) => this.handleServerError(err)));
|
|
1088
1092
|
}
|
|
1089
1093
|
createUrl(path) {
|
|
1090
1094
|
if (absoluteUrlRegExp.test(path)) {
|