From b6fc3051112efd9cb760a0a1f7d01b849160e4da Mon Sep 17 00:00:00 2001 From: Franzz Date: Sun, 4 Feb 2024 22:56:37 +0100 Subject: [PATCH] Fix spotIcon classes on change --- src/components/spotIcon.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/spotIcon.vue b/src/components/spotIcon.vue index b911488..e2641cd 100644 --- a/src/components/spotIcon.vue +++ b/src/components/spotIcon.vue @@ -6,9 +6,9 @@ export default { margin: Boolean, classes: String }, - data() { - return { - classNames: 'fa fa-'+this.icon+((this.margin || this.text && this.text!='')?' push':'')+(this.classes?' '+this.classes:'') + computed: { + classNames() { + return 'fa fa-'+this.icon+((this.margin || this.text && this.text!='')?' push':'')+(this.classes?' '+this.classes:'') } } }