use separate action for setting Theme V2

This commit is contained in:
Henry Jameson 2024-07-12 02:40:57 +03:00
commit e029732021
3 changed files with 10 additions and 15 deletions

View file

@ -255,10 +255,8 @@ const interfaceMod = {
let promise = null
if (themeName) {
// commit('setInstanceOption', { name: 'theme', value: themeName })
promise = getPreset(themeName)
.then(themeData => {
// commit('setInstanceOption', { name: 'themeData', value: themeData })
return normalizeThemeData(themeData)
})
} else if (themeData) {