Fetch theme info from @meta
This commit is contained in:
parent
2d8f99f86b
commit
dc65bbc051
2 changed files with 11 additions and 3 deletions
|
|
@ -87,7 +87,13 @@ export default {
|
|||
return useInterfaceStore().themeApplied
|
||||
},
|
||||
currentTheme () {
|
||||
return this.mergedConfig.style || this.$store.state.instance.style
|
||||
if (useInterfaceStore().styleDataUsed) {
|
||||
const themeName = useInterfaceStore().styleDataUsed.find(x => x.component === '@meta').directives.name
|
||||
|
||||
return themeName.replaceAll(" ", "-").toLowerCase()
|
||||
} else {
|
||||
return 'stock'
|
||||
}
|
||||
},
|
||||
layoutModalClass () {
|
||||
return '-' + this.layoutType
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue