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.cjs
CHANGED
@@ -4255,6 +4255,18 @@ var TableEditor = function TableEditor(props) {
|
|
4255
4255
|
setPageContext(Object.assign({}, pageContext));
|
4256
4256
|
}
|
4257
4257
|
|
4258
|
+
function run(action, item) {
|
4259
|
+
action.action(item.id, pageContext, function () {
|
4260
|
+
try {
|
4261
|
+
return Promise.resolve(pageContext.load()).then(function () {
|
4262
|
+
setPageContext(Object.assign({}, pageContext));
|
4263
|
+
});
|
4264
|
+
} catch (e) {
|
4265
|
+
return Promise.reject(e);
|
4266
|
+
}
|
4267
|
+
});
|
4268
|
+
}
|
4269
|
+
|
4258
4270
|
function renderGroups() {
|
4259
4271
|
var items = filter ? filter(all) : all;
|
4260
4272
|
var groups = items.reduce(function (groups, filter) {
|
@@ -4290,7 +4302,7 @@ var TableEditor = function TableEditor(props) {
|
|
4290
4302
|
clickable: true,
|
4291
4303
|
size: "small",
|
4292
4304
|
action: function action() {
|
4293
|
-
_action
|
4305
|
+
return run(_action, item);
|
4294
4306
|
}
|
4295
4307
|
});
|
4296
4308
|
}) : [];
|