Skip to content

Commit

Permalink
fix(icons): handle inner classes
Browse files Browse the repository at this point in the history
  • Loading branch information
brian-mulier-p committed Apr 9, 2024
1 parent 310df0e commit d6bf1b3
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/components/misc/TaskIcon.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
}
Expand Down

0 comments on commit d6bf1b3

Please sign in to comment.