Update AppConfigurator.vue

pull/4858/head
tugcekucukoglu 2023-11-20 12:36:33 +03:00
parent fe319b4329
commit 07a57129eb
1 changed files with 2 additions and 2 deletions

View File

@ -376,9 +376,9 @@ export default {
this.changeTheme(tokens[0].substring(0, 2), tokens[2]); this.changeTheme(tokens[0].substring(0, 2), tokens[2]);
} }
}, },
isThemeActive(theme, color) { isThemeActive(themeFamily, color) {
let themeName; let themeName;
let themePrefix = this.compactMaterial ? 'mdc' : theme; let themePrefix = themeFamily === 'md' && this.compactMaterial ? 'mdc' : themeFamily;
if (this.lightOnlyThemes.includes(themePrefix)) { if (this.lightOnlyThemes.includes(themePrefix)) {
themeName = themePrefix; themeName = themePrefix;