show warning about palettes being unsupported when using v2 theme
This commit is contained in:
parent
13838a75a9
commit
81d9537f9d
5 changed files with 49 additions and 26 deletions
|
|
@ -5,6 +5,7 @@ import { convertTheme2To3 } from 'src/services/theme_data/theme2_to_theme3.js'
|
|||
const defaultState = {
|
||||
localFonts: null,
|
||||
themeApplied: false,
|
||||
themeVersion: 'v3',
|
||||
temporaryChangesTimeoutId: null, // used for temporary options that revert after a timeout
|
||||
temporaryChangesConfirm: () => {}, // used for applying temporary options
|
||||
temporaryChangesRevert: () => {}, // used for reverting temporary options
|
||||
|
|
@ -307,7 +308,7 @@ const interfaceMod = {
|
|||
commit('setOption', { name: 'customThemeSource', value: null })
|
||||
},
|
||||
async applyTheme (
|
||||
{ dispatch, commit, rootState },
|
||||
{ dispatch, commit, rootState, state },
|
||||
{ recompile = true } = {}
|
||||
) {
|
||||
// If we're not not forced to recompile try using
|
||||
|
|
@ -398,6 +399,8 @@ const interfaceMod = {
|
|||
majorVersionUsed = 'v3'
|
||||
}
|
||||
|
||||
state.themeVersion = majorVersionUsed
|
||||
|
||||
let styleDataUsed = null
|
||||
let styleNameUsed = null
|
||||
let paletteDataUsed = null
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue