Browse Source

bug fix for handlebars expression, show budibase version in updates panel

pull/4546/head
Martin McKeaveney 5 years ago
parent
commit
e37e5d137c
  1. 2
      packages/builder/src/components/common/bindings/BindingPanel.svelte
  2. 2
      packages/frontend-core/src/api/other.js
  3. 4
      packages/server/src/api/controllers/dev.js

2
packages/builder/src/components/common/bindings/BindingPanel.svelte

@ -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)
} }
} }

2
packages/frontend-core/src/api/other.js

@ -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
}, },
/** /**

4
packages/server/src/api/controllers/dev.js

@ -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…
Cancel
Save