ywana-core8 0.0.465 → 0.0.468
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/dist/index.cjs +4 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +4 -4
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +4 -4
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/domain/TablePage.js +3 -5
package/package.json
CHANGED
package/src/domain/TablePage.js
CHANGED
@@ -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
|
-
})}
|
212
|
-
disabled={!
|
209
|
+
}, rows)}
|
210
|
+
disabled={!validate(checked, rows)}
|
213
211
|
/>
|
214
212
|
})
|
215
213
|
|