ywana-core8 0.0.465 → 0.0.466
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 +3 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +3 -2
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +3 -2
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/domain/TablePage.js +2 -2
package/package.json
CHANGED
package/src/domain/TablePage.js
CHANGED
@@ -202,14 +202,14 @@ const TableSelector = (props) => {
|
|
202
202
|
columns,
|
203
203
|
rows: rows || []
|
204
204
|
}
|
205
|
-
const buttons = actions.map(({ label, action }) => {
|
205
|
+
const buttons = actions.map(({ label, action, validate }) => {
|
206
206
|
return <Button
|
207
207
|
label={label} raised
|
208
208
|
action={() => action(checked, pageContext, async () => {
|
209
209
|
await pageContext.load()
|
210
210
|
setPageContext(Object.assign({}, pageContext))
|
211
211
|
})}
|
212
|
-
disabled={!
|
212
|
+
disabled={!validate(checked)}
|
213
213
|
/>
|
214
214
|
})
|
215
215
|
|