@indigina/kendo 2.0.17 → 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)) {
|
|
@@ -2642,8 +2646,8 @@ class EntityService {
|
|
|
2642
2646
|
getPage(state, urlParams) {
|
|
2643
2647
|
return this.httpService.get(applyUrlParams(this.endpoints.query(state), urlParams));
|
|
2644
2648
|
}
|
|
2645
|
-
get(id, urlParams) {
|
|
2646
|
-
return this.httpService.get(applyUrlParams(this.endpoints.entityPath(id), urlParams));
|
|
2649
|
+
get(id, urlParams, options) {
|
|
2650
|
+
return this.httpService.get(applyUrlParams(this.endpoints.entityPath(id), urlParams), options);
|
|
2647
2651
|
}
|
|
2648
2652
|
delete(id, urlParams) {
|
|
2649
2653
|
return this.httpService.delete(applyUrlParams(this.endpoints.entityPath(id), urlParams));
|