Compare commits

..

No commits in common. "d03ca88eba05c8ca900c5a9339b2dded6d05a9bd" and "5e574dca77418930b5313a79628507b9a7e1334e" have entirely different histories.

3 changed files with 6 additions and 7 deletions

View file

@ -27,7 +27,6 @@ export default {
},
emits: ['update:modelValue'],
data() {
console.log(this.fallback)
return {
manualEntry: false,
availableOptions: [
@ -46,7 +45,7 @@ export default {
},
computed: {
present() {
return this.modelValue != null
return typeof this.modelValue !== 'undefined'
},
localFontsList() {
return useInterfaceStore().localFonts

View file

@ -6,7 +6,7 @@
:id="name + '-o'"
class="font-checkbox setting-control setting-label"
:model-value="present"
@change="$emit('update:modelValue', modelValue == null ? fallback : null)"
@change="$emit('update:modelValue', typeof modelValue === 'undefined' ? fallback : undefined)"
>
<LocalSettingIndicator />
{{ ' ' }}

View file

@ -620,22 +620,22 @@ export const LOCAL_DEFAULT_CONFIG_DEFINITIONS = {
},
fontInterface: {
description: 'Interface font override',
type: 'object',
type: 'string',
default: null,
},
fontInput: {
description: 'Input font override',
type: 'object',
type: 'string',
default: null,
},
fontPosts: {
description: 'Post font override',
type: 'object',
type: 'string',
default: null,
},
fontMonospace: {
description: 'Monospace font override',
type: 'object',
type: 'string',
default: null,
},
themeDebug: {