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>
<NumberSetting
v-bind="$attrs"
truncate="1"
:truncate="1"
>
<slot />
</NumberSetting>

View file

@ -4,6 +4,21 @@ export default {
...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: {
type: Number,
required: false,

View file

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

View file

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