ywana-core8 0.0.464 → 0.0.467

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.464",
3
+ "version": "0.0.467",
4
4
  "description": "ywana-core8",
5
5
  "homepage": "https://ywana.github.io/workspace",
6
6
  "author": "Ernesto Roldan Garcia",
@@ -195,21 +195,19 @@ const TableSelector = (props) => {
195
195
  return {id: field.id, label: field.label }
196
196
  })
197
197
 
198
- console.log("TableSelector ",columns, schema)
199
-
200
198
  const rows = all.filter(item => checked.has(item.id))
201
199
  const table = {
202
200
  columns,
203
201
  rows: rows || []
204
202
  }
205
- const buttons = actions.map(({ label, action }) => {
203
+ const buttons = actions.map(({ label, action, validate }) => {
206
204
  return <Button
207
205
  label={label} raised
208
206
  action={() => action(checked, pageContext, async () => {
209
207
  await pageContext.load()
210
208
  setPageContext(Object.assign({}, pageContext))
211
209
  })}
212
- disabled={!action.validate(checked)}
210
+ disabled={!validate(checked, rows)}
213
211
  />
214
212
  })
215
213