Stopped inactive properties from showing computed inline fields, since they are not recomputed while inactive

This commit is contained in:
Stefan Zermatten
2021-02-11 13:12:35 +02:00
parent 3313ed0297
commit 81cdf282ea
16 changed files with 20 additions and 0 deletions

View File

@@ -22,10 +22,12 @@ export default {
return [];
},
},
inactive: Boolean,
},
computed: {
computedValue(){
if (!this.string) return '';
if (this.inactive) return this.string;
let index = 0;
return this.string.replace(/\{([^{}]*)\}/g, () => {
let comp = this.calculations && this.calculations[index++];