@panneau/medias 3.0.266 → 3.0.268
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/es/index.js +2 -0
- package/package.json +2 -2
package/es/index.js
CHANGED
@@ -596,6 +596,7 @@ function MediaForm(_ref) {
|
|
596
596
|
types: [type],
|
597
597
|
outline: false,
|
598
598
|
closeAfterFinish: true,
|
599
|
+
disabled: deleting || trashing || updating || replacing,
|
599
600
|
addButtonLabel: /*#__PURE__*/React.createElement(FormattedMessage, {
|
600
601
|
id: "GxOBVL",
|
601
602
|
defaultMessage: [{
|
@@ -1145,6 +1146,7 @@ function MediasBrowser(_ref) {
|
|
1145
1146
|
}, [setCurrentMedia, updateItem]);
|
1146
1147
|
var onReplaceMedia = useCallback(function (item) {
|
1147
1148
|
setCurrentMedia(item);
|
1149
|
+
reload();
|
1148
1150
|
}, [setCurrentMedia]);
|
1149
1151
|
var onDeleteMedia = useCallback(function () {
|
1150
1152
|
if (reload !== null) {
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@panneau/medias",
|
3
|
-
"version": "3.0.
|
3
|
+
"version": "3.0.268",
|
4
4
|
"description": "",
|
5
5
|
"keywords": [
|
6
6
|
"javascript"
|
@@ -74,5 +74,5 @@
|
|
74
74
|
"publishConfig": {
|
75
75
|
"access": "public"
|
76
76
|
},
|
77
|
-
"gitHead": "
|
77
|
+
"gitHead": "e6e413094c4eaa0b8baf5174dd24e50f6c301adb"
|
78
78
|
}
|