editField(field)} />
@@ -148,7 +150,7 @@
{field.name}
|
{field.type} |
- ({console.log(field.typeOptions)}) {field.typeOptions.values} |
+ {field.typeOptions.values} |
deleteField(field)}>
{@html getIcon('trash')}
diff --git a/packages/builder/src/nav/BackendNav.svelte b/packages/builder/src/nav/BackendNav.svelte
index 3fc3d5cd0c..6116726f7f 100644
--- a/packages/builder/src/nav/BackendNav.svelte
+++ b/packages/builder/src/nav/BackendNav.svelte
@@ -1,6 +1,6 @@
@@ -95,10 +44,9 @@
-
+
+
diff --git a/packages/builder/src/nav/DatabasesList.svelte b/packages/builder/src/nav/DatabasesList.svelte
index fdd2dc3846..a1406745a8 100644
--- a/packages/builder/src/nav/DatabasesList.svelte
+++ b/packages/builder/src/nav/DatabasesList.svelte
@@ -1,32 +1,30 @@
- {#each $store.appInstances as { id, name }}
+ {#each $store.appInstances as database}
-
- {#if id === $store.currentlySelectedDatabase}
+ {#if database.id === $backendUiStore.selectedDatabase.id}
{/if}
{/each}
diff --git a/packages/builder/src/nav/HierarchyRow.svelte b/packages/builder/src/nav/HierarchyRow.svelte
index 9c6d2adbd1..209883692e 100644
--- a/packages/builder/src/nav/HierarchyRow.svelte
+++ b/packages/builder/src/nav/HierarchyRow.svelte
@@ -1,6 +1,6 @@
store.selectExistingNode(node.nodeId)}
+ on:click={() => selectHierarchyItem(node)}
class="budibase__nav-item hierarchy-item"
- class:capitalized={type === "record"}
+ class:capitalized={type === 'record'}
style="padding-left: {20 + level * 20}px"
class:selected={navActive}>
@@ -44,12 +50,12 @@
diff --git a/packages/builder/src/nav/NavItem.svelte b/packages/builder/src/nav/NavItem.svelte
index 8556f54596..e8d7102a0a 100644
--- a/packages/builder/src/nav/NavItem.svelte
+++ b/packages/builder/src/nav/NavItem.svelte
@@ -1,17 +1,13 @@
- import { store } from "../builderStore"
+ import { store, backendUiStore } from "../builderStore"
import HierarchyRow from "./HierarchyRow.svelte"
import DropdownButton from "../common/DropdownButton.svelte"
import { hierarchy as hierarchyFunctions } from "../../../core/src"
import NavItem from "./NavItem.svelte"
import getIcon from "../common/icon"
- const newRootRecord = () => {
- store.newRootRecord()
- }
-
- const newRootIndex = () => {
- store.newRootIndex()
- }
-
- const newChildRecord = () => {
- store.newChildRecord()
- }
-
- const newChildIndex = () => {
- store.newChildIndex()
- }
-
const defaultNewChildActions = [
{
label: "New Root Record",
- onclick: newRootRecord,
+ onclick: store.newRootRecord,
},
{
label: "New Root Index",
- onclick: newRootIndex,
+ onclick: store.newRootIndex,
},
]
@@ -46,19 +30,19 @@
newChildActions = [
{
label: "New Root Record",
- onclick: newRootRecord,
+ onclick: store.newRootRecord,
},
{
label: "New Root Index",
- onclick: newRootIndex,
+ onclick: store.newRootIndex,
},
{
label: `New Child Record of ${db.currentNode.name}`,
- onclick: newChildRecord,
+ onclick: store.newChildRecord,
},
{
label: `New Index on ${db.currentNode.name}`,
- onclick: newChildIndex,
+ onclick: store.newChildIndex,
},
]
}
@@ -72,12 +56,22 @@
Schema
-
+
- -
+
- {
+ store.newRootRecord()
+ backendUiStore.actions.modals.show('MODEL')
+ }}>
Model
- -
+
- {
+ store.newRootIndex()
+ backendUiStore.actions.modals.show('VIEW')
+ }}>
View
diff --git a/packages/server/middleware/routers.js b/packages/server/middleware/routers.js
index dd77706f5f..48df206cb4 100644
--- a/packages/server/middleware/routers.js
+++ b/packages/server/middleware/routers.js
@@ -237,6 +237,7 @@ module.exports = (config, app) => {
} else {
ctx.response.status = StatusCodes.UNAUTHORIZED
}
+ next()
})
.post("/:appname/api/changeMyPassword", routeHandlers.changeMyPassword)
.post(
@@ -319,8 +320,4 @@ module.exports = (config, app) => {
.post("/:appname/api/apphierarchy", routeHandlers.saveAppHierarchy)
return router
-}
-
-/*
-front end get authenticateTemporaryAccess {}
-*/
+}
\ No newline at end of file
|