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:
commit
3128ea57e1
9 changed files with 71 additions and 15 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue