@indigina/kendo 2.0.24 → 2.0.25
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(() => {
|