Browse Source

component templates: store binding renamed to state

pull/123/head
Michael Shanks 6 years ago
parent
commit
eed864b770
  1. 2
      packages/materialdesign-components/src/Templates/indexDatatable.js
  2. 2
      packages/materialdesign-components/src/Templates/recordForm.js

2
packages/materialdesign-components/src/Templates/indexDatatable.js

@ -65,7 +65,7 @@ const dataCells = (index, indexSchema) =>
}))
const dataItem = index => `${index.name}_item`
const dataCollection = index => `store.${index.name}`
const dataCollection = index => `state.${index.name}`
const rowCode = index =>
`
if (!${dataCollection(index)}) return

2
packages/materialdesign-components/src/Templates/recordForm.js

@ -44,7 +44,7 @@ const checkbox = (record, f) => ({
checked: fieldValueBinding(record, f),
})
const fieldValueBinding = (record, f) => `store.${record.name}.${f.name}`
const fieldValueBinding = (record, f) => `state.${record.name}.${f.name}`
const capitalize = s => s.charAt(0).toUpperCase() + s.slice(1)

Loading…
Cancel
Save