changes front-end to use new store method names

This commit is contained in:
kevmodrome 2020-04-14 10:24:33 +02:00
parent a4c177e8ec
commit bf639da46c
3 changed files with 5 additions and 5 deletions

View File

@ -52,8 +52,8 @@ export const getStore = () => {
store.setPackage = setPackage(store, initial) store.setPackage = setPackage(store, initial)
store.newChildRecord = backendStoreActions.newRecord(store, false) store.newChildModel = backendStoreActions.newRecord(store, false)
store.newRootRecord = backendStoreActions.newRecord(store, true) store.newRootModel = backendStoreActions.newRecord(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)

View File

@ -168,7 +168,7 @@
Save Save
</ActionButton> </ActionButton>
{#if modelExistsInHierarchy} {#if modelExistsInHierarchy}
<ActionButton color="primary" on:click={store.newChildRecord}> <ActionButton color="primary" on:click={store.newChildModel}>
Create Child Model on {record.name} Create Child Model on {record.name}
</ActionButton> </ActionButton>
<ActionButton <ActionButton

View File

@ -14,9 +14,9 @@
function newModel() { function newModel() {
if ($store.currentNode) { if ($store.currentNode) {
store.newChildRecord() store.newChildModel()
} else { } else {
store.newRootRecord() store.newRootModel()
} }
open( open(
CreateEditModelModal, CreateEditModelModal,