fix: only call Royal the default theme if it is (#970)
This commit is contained in:
parent
30048a7f12
commit
3aee6fb050
|
@ -14,7 +14,7 @@
|
||||||
style="background-color: {theme.color};" >
|
style="background-color: {theme.color};" >
|
||||||
</div>
|
</div>
|
||||||
<label class="theme-picker-label" for="choice-theme-{theme.name}">
|
<label class="theme-picker-label" for="choice-theme-{theme.name}">
|
||||||
{theme.label}
|
{theme.label} {theme.name === DEFAULT_THEME ? '(default)' : ''}
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
{/each}
|
{/each}
|
||||||
|
@ -94,6 +94,7 @@
|
||||||
store: () => store,
|
store: () => store,
|
||||||
data: () => ({
|
data: () => ({
|
||||||
themes,
|
themes,
|
||||||
|
DEFAULT_THEME,
|
||||||
selectedTheme: DEFAULT_THEME
|
selectedTheme: DEFAULT_THEME
|
||||||
}),
|
}),
|
||||||
computed: {
|
computed: {
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
const themes = [
|
const themes = [
|
||||||
{
|
{
|
||||||
name: 'default',
|
name: 'default',
|
||||||
label: 'Royal (default)',
|
label: 'Royal',
|
||||||
dark: false,
|
dark: false,
|
||||||
color: 'royalblue'
|
color: 'royalblue'
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue