@indigina/kendo 2.0.18 → 2.0.20
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)) {
|
|
@@ -2284,6 +2288,7 @@ var PermissionTypes;
|
|
|
2284
2288
|
PermissionTypes["Edit"] = "Edit";
|
|
2285
2289
|
PermissionTypes["View"] = "View";
|
|
2286
2290
|
PermissionTypes["Set"] = "Set";
|
|
2291
|
+
PermissionTypes["Use"] = "Use";
|
|
2287
2292
|
})(PermissionTypes || (PermissionTypes = {}));
|
|
2288
2293
|
|
|
2289
2294
|
class FilterConverter {
|