ywana-core8 0.0.157 → 0.0.158
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 +11 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +11 -2
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +11 -2
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/domain/TablePage.js +4 -1
package/dist/index.umd.js
CHANGED
@@ -4297,7 +4297,8 @@
|
|
4297
4297
|
actions = _props$actions === void 0 ? [] : _props$actions;
|
4298
4298
|
|
4299
4299
|
var _useContext2 = React.useContext(PageContext),
|
4300
|
-
pageContext = _useContext2[0]
|
4300
|
+
pageContext = _useContext2[0],
|
4301
|
+
setPageContext = _useContext2[1];
|
4301
4302
|
|
4302
4303
|
var all = pageContext.all,
|
4303
4304
|
checked = pageContext.checked;
|
@@ -4319,7 +4320,15 @@
|
|
4319
4320
|
label: label,
|
4320
4321
|
raised: true,
|
4321
4322
|
action: function action() {
|
4322
|
-
return _action(checked)
|
4323
|
+
return _action(checked, pageContext, function () {
|
4324
|
+
try {
|
4325
|
+
return Promise.resolve(pageContext.load()).then(function () {
|
4326
|
+
setPageContext(Object.assign({}, pageContext));
|
4327
|
+
});
|
4328
|
+
} catch (e) {
|
4329
|
+
return Promise.reject(e);
|
4330
|
+
}
|
4331
|
+
});
|
4323
4332
|
}
|
4324
4333
|
});
|
4325
4334
|
});
|