Adapt UI app to new data model
This commit is contained in:
@@ -69,13 +69,16 @@ export default {
|
||||
this.value = this.initialValue
|
||||
},
|
||||
async applyValue () {
|
||||
const value = {
|
||||
const payload = {
|
||||
intValue: 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
|
||||
|
||||
Reference in New Issue
Block a user