logo

pleroma-fe

My custom branche(s) on git.pleroma.social/pleroma/pleroma-fe git clone https://anongit.hacktivis.me/git/pleroma-fe.git/
commit: 3c929416643ef64d6f5996a6466363ba4d65a96d
parent 7f9ab03447dd76cd408d1132cdf2c8bde6f67abe
Author: Henry Jameson <me@hjkos.com>
Date:   Wed,  4 Dec 2024 10:46:24 +0200

properly reset v3 stuff when applying v2 theme

Diffstat:

Msrc/modules/interface.js12+++++++-----
1 file changed, 7 insertions(+), 5 deletions(-)

diff --git a/src/modules/interface.js b/src/modules/interface.js @@ -490,6 +490,8 @@ const interfaceMod = { ) state.styleNameUsed = style.nameUsed state.styleDataUsed = style.dataUsed + state.themeDataUsed = null + state.themeNameUsed = null } else { const theme = await getData( 'theme', @@ -497,8 +499,12 @@ const interfaceMod = { userThemeV2Source || userThemeV2Snapshot, userThemeV2Name || instanceThemeV2Name ) - // themeNameUsed = theme.nameUsed + state.themeNameUsed = theme.nameUsed state.themeDataUsed = theme.dataUsed + state.styleNameUsed = null + state.styleDataUsed = null + state.paletteNameUsed = null + state.paletteDataUsed = null } }, async applyTheme ( @@ -519,10 +525,6 @@ const interfaceMod = { } await dispatch('getThemeData') - // commit('setOption', { name: 'palette', value: paletteNameUsed }) - // commit('setOption', { name: 'style', value: styleNameUsed }) - // commit('setOption', { name: 'theme', value: themeNameUsed }) - const paletteIss = (() => { if (!state.paletteDataUsed) return null const result = {