some minor fixes and warnings cleanpu

This commit is contained in:
Henry Jameson 2024-12-23 04:15:24 +02:00
parent b8b02cf144
commit 34449a7c61
4 changed files with 18 additions and 3 deletions

View file

@ -1,7 +1,7 @@
<template> <template>
<NumberSetting <NumberSetting
v-bind="$attrs" v-bind="$attrs"
truncate="1" :truncate="1"
> >
<slot /> <slot />
</NumberSetting> </NumberSetting>

View file

@ -4,6 +4,21 @@ export default {
...Setting, ...Setting,
props: { props: {
...Setting.props, ...Setting.props,
min: {
type: Number,
required: false,
default: 1
},
max: {
type: Number,
required: false,
default: 1
},
step: {
type: Number,
required: false,
default: 1
},
truncate: { truncate: {
type: Number, type: Number,
required: false, required: false,

View file

@ -259,12 +259,10 @@ const AppearanceTab = {
return ['sidebar', 'content', ...notif] return ['sidebar', 'content', ...notif]
} }
}, },
instanceSpecificPanelPresent () { return this.$store.state.instance.showInstanceSpecificPanel },
instanceWallpaperUsed () { instanceWallpaperUsed () {
return this.$store.state.instance.background && return this.$store.state.instance.background &&
!this.$store.state.users.currentUser.background_image !this.$store.state.users.currentUser.background_image
}, },
instanceShoutboxPresent () { return this.$store.state.instance.shoutAvailable },
language: { language: {
get: function () { return this.$store.getters.mergedConfig.interfaceLanguage }, get: function () { return this.$store.getters.mergedConfig.interfaceLanguage },
set: function (val) { set: function (val) {

View file

@ -81,6 +81,8 @@ const GeneralTab = {
this.$store.dispatch('setOption', { name: 'interfaceLanguage', value: val }) this.$store.dispatch('setOption', { name: 'interfaceLanguage', value: val })
} }
}, },
instanceShoutboxPresent () { return this.$store.state.instance.shoutAvailable },
instanceSpecificPanelPresent () { return this.$store.state.instance.showInstanceSpecificPanel },
...SharedComputedObject() ...SharedComputedObject()
}, },
methods: { methods: {