Adapt UI app to new data model

This commit is contained in:
Benedikt Kulmann
2020-08-19 10:27:06 +02:00
parent 8282f348eb
commit 0e8be0e195
9 changed files with 130 additions and 125 deletions
+5 -2
View File
@@ -51,13 +51,16 @@ export default {
},
methods: {
async applyValue () {
const value = {
const payload = {
stringValue: this.value
}
if (!isNil(this.persistedValue)) {
payload.id = this.persistedValue.id
}
await this.$emit('onSave', {
bundle: this.bundle,
setting: this.setting,
value
payload
})
// TODO: show a spinner while the request for saving the value is running!
this.initialValue = this.value