ywana-core8 0.0.693 → 0.0.695

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.
@@ -3953,9 +3953,12 @@ var Dialog = function Dialog(props) {
3953
3953
  toolbar = props.toolbar,
3954
3954
  children = props.children,
3955
3955
  actions = props.actions,
3956
- className = props.className;
3956
+ className = props.className,
3957
+ onClose = props.onClose;
3957
3958
 
3958
3959
  function close() {
3960
+ if (onClose) onClose();
3961
+
3959
3962
  if (className === "prompt") {
3960
3963
  site.closePromptDialog();
3961
3964
  } else {
@@ -6284,7 +6287,6 @@ var CollectionEditor = function CollectionEditor(props) {
6284
6287
  setForm = _useState5[1];
6285
6288
 
6286
6289
  useEffect(function () {
6287
- console.log(selected);
6288
6290
  setForm(selected);
6289
6291
  }, [selected]);
6290
6292
  useEffect(function () {
@@ -6369,7 +6371,11 @@ var CollectionEditor = function CollectionEditor(props) {
6369
6371
  }, /*#__PURE__*/React.createElement(Menu, null, canDelete ? /*#__PURE__*/React.createElement(MenuItem, {
6370
6372
  label: "Eliminar",
6371
6373
  onSelect: remove
6372
- }) : null)), autosave === true ? null : /*#__PURE__*/React.createElement(Button, {
6374
+ }) : null)), /*#__PURE__*/React.createElement(Icon, {
6375
+ icon: "refresh",
6376
+ clickable: true,
6377
+ action: onReload
6378
+ }), autosave === true ? null : /*#__PURE__*/React.createElement(Button, {
6373
6379
  icon: "save",
6374
6380
  label: "Guardar Cambios",
6375
6381
  raised: true,