ywana-core8 0.0.462 → 0.0.465

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.462",
3
+ "version": "0.0.465",
4
4
  "description": "ywana-core8",
5
5
  "homepage": "https://ywana.github.io/workspace",
6
6
  "author": "Ernesto Roldan Garcia",
@@ -203,10 +203,14 @@ const TableSelector = (props) => {
203
203
  rows: rows || []
204
204
  }
205
205
  const buttons = actions.map(({ label, action }) => {
206
- return <Button label={label} raised action={() => action(checked, pageContext, async () => {
207
- await pageContext.load()
208
- setPageContext(Object.assign({}, pageContext))
209
- })} />
206
+ return <Button
207
+ label={label} raised
208
+ action={() => action(checked, pageContext, async () => {
209
+ await pageContext.load()
210
+ setPageContext(Object.assign({}, pageContext))
211
+ })}
212
+ disabled={!action.validate(checked)}
213
+ />
210
214
  })
211
215
 
212
216
  return (