Merge branch 'themes3-cache' into 'develop'

implement a simple caching system for themes 3

See merge request pleroma/pleroma-fe!1911
This commit is contained in:
HJ 2024-05-22 12:15:21 +00:00
commit 3128ea57e1
9 changed files with 71 additions and 15 deletions

View file

@ -378,7 +378,8 @@ const instance = {
commit('setInstanceOption', { name: 'themeData', value: themeData })
// No need to apply theme if there's user theme already
const { customTheme } = rootState.config
if (customTheme) return
const { themeApplied } = rootState.interface
if (customTheme || themeApplied) return
// New theme presets don't have 'theme' property, they use 'source'
const themeSource = themeData.source