1
0
Fork 0
mirror of synced 2024-07-03 13:30:46 +12:00

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.newChildRecord = backendStoreActions.newRecord(store, false)
store.newRootRecord = backendStoreActions.newRecord(store, true)
store.newChildModel = backendStoreActions.newRecord(store, false)
store.newRootModel = backendStoreActions.newRecord(store, true)
store.selectExistingNode = backendStoreActions.selectExistingNode(store)
store.newChildIndex = backendStoreActions.newIndex(store, false)
store.newRootIndex = backendStoreActions.newIndex(store, true)

View file

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

View file

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