🔀 Merge branch 'master' into escape-quote-in-migrations

This commit is contained in:
Jan Oberhauser 2021-05-31 13:01:13 -05:00
commit 1c64d22203
2 changed files with 14 additions and 6 deletions

View file

@ -73,9 +73,15 @@ export default mixins(
};
},
methods: {
valueChanged (value: string) {
valueChanged (value: string, forceUpdate = false) {
this.latestValue = value;
if (forceUpdate === true) {
this.updateDisplayValue();
this.$emit('valueChanged', this.latestValue);
} else {
this.callDebounced('updateDisplayValue', 500);
}
},
updateDisplayValue () {

View file

@ -234,11 +234,13 @@ export default mixins(
} else {
// If no position got found add it to end
let newValue = this.value;
if (newValue !== '=') {
newValue += ` `;
if (newValue === '=' || newValue === '=0') {
newValue = `{{${eventData.variable}}}\n`;
} else {
newValue += ` {{${eventData.variable}}}\n`;
}
newValue += `{{${eventData.variable}}}\n`;
this.$emit('change', newValue);
this.$emit('change', newValue, true);
if (!this.resolvedValue) {
Vue.nextTick(() => {
this.initValue();