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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ywana-core8",
3
- "version": "0.0.693",
3
+ "version": "0.0.695",
4
4
  "description": "ywana-core8",
5
5
  "homepage": "https://ywana.github.io/workspace",
6
6
  "author": "Ernesto Roldan Garcia",
@@ -350,7 +350,6 @@ const CollectionEditor = (props) => {
350
350
  const [form, setForm] = useState(selected)
351
351
 
352
352
  useEffect(() => {
353
- console.log(selected)
354
353
  setForm(selected)
355
354
  }, [selected])
356
355
 
@@ -429,6 +428,7 @@ const CollectionEditor = (props) => {
429
428
  {canDelete ? <MenuItem label="Eliminar" onSelect={remove} /> : null}
430
429
  </Menu>
431
430
  </MenuIcon>
431
+ <Icon icon="refresh" clickable action={onReload} />
432
432
  {autosave === true ? null : <Button icon="save" label="Guardar Cambios" raised disabled={!canSave()} action={save} />}
433
433
  {renderActions()}
434
434
  </Header>
@@ -11,9 +11,10 @@ import './dialog.css'
11
11
  export const Dialog = (props) => {
12
12
 
13
13
  const site = useContext(SiteContext)
14
- const { icon, title = "Dialog", toolbar, children, actions, className } = props
14
+ const { icon, title = "Dialog", toolbar, children, actions, className, onClose } = props
15
15
 
16
16
  function close() {
17
+ if (onClose) onClose()
17
18
  if (className === "prompt") {
18
19
  site.closePromptDialog()
19
20
  } else {