changes name of backend store method
This commit is contained in:
parent
c0c7cd19e1
commit
fb74982055
|
@ -107,7 +107,7 @@ export const saveBackend = async state => {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export const newRecord = (store, useRoot) => () => {
|
export const newModel = (store, useRoot) => () => {
|
||||||
store.update(state => {
|
store.update(state => {
|
||||||
state.currentNodeIsNew = true
|
state.currentNodeIsNew = true
|
||||||
const shadowHierarchy = createShadowHierarchy(state.hierarchy)
|
const shadowHierarchy = createShadowHierarchy(state.hierarchy)
|
||||||
|
|
|
@ -52,8 +52,8 @@ export const getStore = () => {
|
||||||
|
|
||||||
store.setPackage = setPackage(store, initial)
|
store.setPackage = setPackage(store, initial)
|
||||||
|
|
||||||
store.newChildModel = backendStoreActions.newRecord(store, false)
|
store.newChildModel = backendStoreActions.newModel(store, false)
|
||||||
store.newRootModel = backendStoreActions.newRecord(store, true)
|
store.newRootModel = backendStoreActions.newModel(store, true)
|
||||||
store.selectExistingNode = backendStoreActions.selectExistingNode(store)
|
store.selectExistingNode = backendStoreActions.selectExistingNode(store)
|
||||||
store.newChildIndex = backendStoreActions.newIndex(store, false)
|
store.newChildIndex = backendStoreActions.newIndex(store, false)
|
||||||
store.newRootIndex = backendStoreActions.newIndex(store, true)
|
store.newRootIndex = backendStoreActions.newIndex(store, true)
|
||||||
|
|
Loading…
Reference in New Issue