Page MenuHomePhorge

No OneTemporary

Size
1 KB
Referenced Files
None
Subscribers
None
diff --git a/src/components/font_control/font_control.js b/src/components/font_control/font_control.js
index 13daa095bb..d939494507 100644
--- a/src/components/font_control/font_control.js
+++ b/src/components/font_control/font_control.js
@@ -1,60 +1,59 @@
import Select from '../select/select.vue'
import Checkbox from 'src/components/checkbox/checkbox.vue'
import Popover from 'src/components/popover/popover.vue'
import { library } from '@fortawesome/fontawesome-svg-core'
import {
faExclamationTriangle,
faKeyboard,
faFont
} from '@fortawesome/free-solid-svg-icons'
library.add(
faExclamationTriangle,
faKeyboard,
faFont
)
export default {
components: {
Select,
Checkbox,
Popover
},
props: [
'name', 'label', 'modelValue', 'fallback', 'options', 'no-inherit'
],
mounted () {
this.$store.dispatch('queryLocalFonts')
},
emits: ['update:modelValue'],
data () {
return {
manualEntry: false,
availableOptions: [
this.noInherit ? '' : 'inherit',
'serif',
'sans-serif',
'monospace',
...(this.options || [])
].filter(_ => _)
}
},
methods: {
toggleManualEntry () {
this.manualEntry = !this.manualEntry
}
},
computed: {
present () {
return typeof this.modelValue !== 'undefined'
},
localFontsList () {
- console.log('FONTLIST', this.$store.state.interface.localFonts?.values())
return this.$store.state.interface.localFonts
},
localFontsSize () {
return this.$store.state.interface.localFonts?.length
}
}
}

File Metadata

Mime Type
text/x-diff
Expires
Sat, Sep 19, 1:27 AM (17 h, 59 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1768603
Default Alt Text
(1 KB)

Event Timeline