@topconsultnpm/sdkui-react-beta 6.14.92 → 6.14.94
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.
|
@@ -137,26 +137,24 @@ const TMBlogs = (props) => {
|
|
|
137
137
|
const workingGroupEngine = new WorkingGroupEngine(SDK_Globals.tmSession);
|
|
138
138
|
await workingGroupEngine.BlogPostDeleteOrUndeleteAsync(context.object.id, focusedBlog.id, del)
|
|
139
139
|
.then(() => {
|
|
140
|
-
result.push({ rowIndex: 1, id1: context.object?.id, id2: 0, description: SDKUI_Localizator.UpdateCompletedSuccessfully, resultType: ResultTypes.SUCCESS });
|
|
141
|
-
TMResultManager.show(result, del ? SDKUI_Localizator.Delete : SDKUI_Localizator.Restore, "ID", undefined);
|
|
142
140
|
handleFocusedBlog(undefined);
|
|
143
141
|
refresh();
|
|
144
142
|
})
|
|
145
143
|
.catch((err) => {
|
|
146
144
|
result.push({ rowIndex: 1, id1: context.object?.id, id2: context.object?.id, resultType: ResultTypes.ERROR, description: getExceptionMessage(err) });
|
|
145
|
+
TMResultManager.show(result, del ? SDKUI_Localizator.Delete : SDKUI_Localizator.Restore, "ID", undefined);
|
|
147
146
|
});
|
|
148
147
|
}
|
|
149
148
|
else if (context.engine === 'SearchEngine' && context.object.tid && context.object.did) {
|
|
150
149
|
const searchEngine = SDK_Globals.tmSession?.NewSearchEngine();
|
|
151
150
|
await searchEngine.BlogPostDeleteOrUndeleteAsync(context.object.tid, context.object.did, focusedBlog.id, del)
|
|
152
151
|
.then(() => {
|
|
153
|
-
result.push({ rowIndex: 1, id1: context.object?.tid, id2: context.object?.did, description: SDKUI_Localizator.UpdateCompletedSuccessfully, resultType: ResultTypes.SUCCESS });
|
|
154
|
-
TMResultManager.show(result, del ? SDKUI_Localizator.Delete : SDKUI_Localizator.Restore, "ID", undefined);
|
|
155
152
|
handleFocusedBlog(undefined);
|
|
156
153
|
refresh();
|
|
157
154
|
})
|
|
158
155
|
.catch((err) => {
|
|
159
156
|
result.push({ rowIndex: 1, id1: context.object?.tid, id2: context.object?.did, resultType: ResultTypes.ERROR, description: getExceptionMessage(err) });
|
|
157
|
+
TMResultManager.show(result, del ? SDKUI_Localizator.Delete : SDKUI_Localizator.Restore, "ID", undefined);
|
|
160
158
|
});
|
|
161
159
|
}
|
|
162
160
|
}
|
|
@@ -164,7 +162,6 @@ const TMBlogs = (props) => {
|
|
|
164
162
|
setLocalWaitPanelMaxValuePrimary(0);
|
|
165
163
|
setLocalWaitPanelValuePrimary(0);
|
|
166
164
|
setLocalShowWaitPanel(false);
|
|
167
|
-
TMResultManager.show(result, del ? SDKUI_Localizator.Delete : SDKUI_Localizator.Restore, "ID", undefined);
|
|
168
165
|
}
|
|
169
166
|
});
|
|
170
167
|
};
|