From d6bf1b33945d78fe66d9b86bc8eb46f7e07a759d Mon Sep 17 00:00:00 2001 From: "brian.mulier" Date: Tue, 9 Apr 2024 20:02:25 +0200 Subject: [PATCH] fix(icons): handle inner classes --- src/components/misc/TaskIcon.vue | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/components/misc/TaskIcon.vue b/src/components/misc/TaskIcon.vue index 1e38b22..6615d73 100644 --- a/src/components/misc/TaskIcon.vue +++ b/src/components/misc/TaskIcon.vue @@ -75,7 +75,12 @@ return window.btoa(icon); }, icon() { - return this.cls ? (this.icons || {})[this.cls] : this.customIcon; + return this.cls ? (this.icons || {})[this.innerClassToParent(this.cls)] : this.customIcon; + } + }, + methods: { + innerClassToParent(cls) { + return cls.includes("$") ? cls.substring(0, cls.indexOf("$")) : cls; } } }