ywana-core8 0.0.56 → 0.0.60
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.
- package/dist/index.cjs +13 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +13 -1
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +13 -1
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/domain/TablePage.js +8 -2
package/dist/index.modern.js
CHANGED
@@ -4249,6 +4249,18 @@ var TableEditor = function TableEditor(props) {
|
|
4249
4249
|
setPageContext(Object.assign({}, pageContext));
|
4250
4250
|
}
|
4251
4251
|
|
4252
|
+
function run(action, item) {
|
4253
|
+
action.action(item.id, pageContext, function () {
|
4254
|
+
try {
|
4255
|
+
return Promise.resolve(pageContext.load()).then(function () {
|
4256
|
+
setPageContext(Object.assign({}, pageContext));
|
4257
|
+
});
|
4258
|
+
} catch (e) {
|
4259
|
+
return Promise.reject(e);
|
4260
|
+
}
|
4261
|
+
});
|
4262
|
+
}
|
4263
|
+
|
4252
4264
|
function renderGroups() {
|
4253
4265
|
var items = filter ? filter(all) : all;
|
4254
4266
|
var groups = items.reduce(function (groups, filter) {
|
@@ -4284,7 +4296,7 @@ var TableEditor = function TableEditor(props) {
|
|
4284
4296
|
clickable: true,
|
4285
4297
|
size: "small",
|
4286
4298
|
action: function action() {
|
4287
|
-
_action
|
4299
|
+
return run(_action, item);
|
4288
4300
|
}
|
4289
4301
|
});
|
4290
4302
|
}) : [];
|