Merge pull request #4546 from Budibase/fix/various-fixes
bug fix for handlebars expression, show budibase version in updates p…
This commit is contained in:
commit
e148add1b6
|
@ -536,12 +536,14 @@ export const getSchemaForDatasource = (asset, datasource, options) => {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Add schema properties if required
|
// Add schema properties if required
|
||||||
|
if (schema) {
|
||||||
if (addId) {
|
if (addId) {
|
||||||
schema["_id"] = { type: "string" }
|
schema["_id"] = { type: "string" }
|
||||||
}
|
}
|
||||||
if (addRev) {
|
if (addRev) {
|
||||||
schema["_rev"] = { type: "string" }
|
schema["_rev"] = { type: "string" }
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Ensure there are "name" properties for all fields and that field schema
|
// Ensure there are "name" properties for all fields and that field schema
|
||||||
// are objects
|
// are objects
|
||||||
|
|
|
@ -58,7 +58,7 @@
|
||||||
const updateValue = val => {
|
const updateValue = val => {
|
||||||
valid = isValid(readableToRuntimeBinding(bindings, val))
|
valid = isValid(readableToRuntimeBinding(bindings, val))
|
||||||
if (valid) {
|
if (valid) {
|
||||||
dispatch("change", value)
|
dispatch("change", val)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -74,6 +74,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
draftScreen.routing.route = route
|
draftScreen.routing.route = route
|
||||||
|
draftScreen.routing.roleId = roleId
|
||||||
|
|
||||||
await store.actions.screens.save(draftScreen)
|
await store.actions.screens.save(draftScreen)
|
||||||
if (draftScreen.props._instanceName.endsWith("List")) {
|
if (draftScreen.props._instanceName.endsWith("List")) {
|
||||||
|
|
|
@ -32,7 +32,7 @@ export const buildOtherEndpoints = API => ({
|
||||||
getBudibaseVersion: async () => {
|
getBudibaseVersion: async () => {
|
||||||
return await API.get({
|
return await API.get({
|
||||||
url: "/api/dev/version",
|
url: "/api/dev/version",
|
||||||
})
|
}).version
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -118,5 +118,7 @@ exports.revert = async ctx => {
|
||||||
}
|
}
|
||||||
|
|
||||||
exports.getBudibaseVersion = async ctx => {
|
exports.getBudibaseVersion = async ctx => {
|
||||||
ctx.body = require("../../../package.json").version
|
ctx.body = {
|
||||||
|
version: require("../../../package.json").version,
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue