@panneau/medias 3.0.239 → 3.0.241

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.
Files changed (2) hide show
  1. package/es/index.js +6 -6
  2. package/package.json +2 -2
package/es/index.js CHANGED
@@ -39,6 +39,7 @@ var apiPropTypes = PropTypes.shape({
39
39
  find: PropTypes.func.isRequired,
40
40
  update: PropTypes.func.isRequired,
41
41
  trash: PropTypes.func.isRequired,
42
+ restore: PropTypes.func.isRequired,
42
43
  "delete": PropTypes.func.isRequired
43
44
  });
44
45
  var propTypes$9 = {
@@ -1189,7 +1190,7 @@ function MediasBrowser(_ref) {
1189
1190
  component: 'restore',
1190
1191
  withConfirmation: true,
1191
1192
  action: function action(ids) {
1192
- return mediaRestore(ids[0]);
1193
+ return mediaRestore(ids[0]).then(reload);
1193
1194
  }
1194
1195
  });
1195
1196
  }
@@ -1330,16 +1331,15 @@ function MediasBrowser(_ref) {
1330
1331
  ,
1331
1332
  actionsProps: {
1332
1333
  getDeletePropsFromItem: function getDeletePropsFromItem() {
1333
- var _ref12 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
1334
- _ref12$id = _ref12.id,
1335
- id = _ref12$id === void 0 ? null : _ref12$id;
1334
+ var _ref12 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
1335
+ _ref12.id;
1336
1336
  return {
1337
1337
  href: null,
1338
1338
  withConfirmation: true,
1339
1339
  disabled: trashing || deleting,
1340
1340
  icon: showTrashed ? 'trash-fill' : 'trash',
1341
- onClick: function onClick() {
1342
- return onTrashMedia(id);
1341
+ action: function action(ids) {
1342
+ return onTrashMedia(ids[0]);
1343
1343
  }
1344
1344
  };
1345
1345
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@panneau/medias",
3
- "version": "3.0.239",
3
+ "version": "3.0.241",
4
4
  "description": "",
5
5
  "keywords": [
6
6
  "javascript"
@@ -74,5 +74,5 @@
74
74
  "publishConfig": {
75
75
  "access": "public"
76
76
  },
77
- "gitHead": "efafb3ad320a00aab23f87525067144c57b18950"
77
+ "gitHead": "0c29c034ec812b14b2f2d06314f2950a7136f143"
78
78
  }