Skip to content

Commit

Permalink
#168 make image data computed in order to auto update
Browse files Browse the repository at this point in the history
  • Loading branch information
klues committed Jan 22, 2025
1 parent 3a31ac1 commit 0193f16
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,16 @@ export default {
props: ["gridElement", "metadata"],
data() {
return {
imageData: this.gridElement.image ? this.gridElement.image.data || this.gridElement.image.url : null,
TextConfig: TextConfig
}
},
computed: {
label() {
let label = stateService.getDisplayText(this.gridElement.id) || i18nService.getTranslation(this.gridElement.label);
return util.convertLowerUppercase(label, this.metadata.textConfig.convertMode);
},
imageData() {
return this.gridElement.image ? this.gridElement.image.data || this.gridElement.image.url : null;
}
},
methods: {
Expand Down

0 comments on commit 0193f16

Please sign in to comment.