logo

pleroma-fe

My custom branche(s) on git.pleroma.social/pleroma/pleroma-fe git clone https://anongit.hacktivis.me/git/pleroma-fe.git/
commit: 34449a7c6159800a66db9940e779d764ccbbf93e
parent b8b02cf14434c5c5e5e01cc06b1c51669d942185
Author: Henry Jameson <me@hjkos.com>
Date:   Mon, 23 Dec 2024 04:15:24 +0200

some minor fixes and warnings cleanpu

Diffstat:

Msrc/components/settings_modal/helpers/integer_setting.vue2+-
Msrc/components/settings_modal/helpers/number_setting.js15+++++++++++++++
Msrc/components/settings_modal/tabs/appearance_tab.js2--
Msrc/components/settings_modal/tabs/general_tab.js2++
4 files changed, 18 insertions(+), 3 deletions(-)

diff --git a/src/components/settings_modal/helpers/integer_setting.vue b/src/components/settings_modal/helpers/integer_setting.vue @@ -1,7 +1,7 @@ <template> <NumberSetting v-bind="$attrs" - truncate="1" + :truncate="1" > <slot /> </NumberSetting> diff --git a/src/components/settings_modal/helpers/number_setting.js b/src/components/settings_modal/helpers/number_setting.js @@ -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, diff --git a/src/components/settings_modal/tabs/appearance_tab.js b/src/components/settings_modal/tabs/appearance_tab.js @@ -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) { diff --git a/src/components/settings_modal/tabs/general_tab.js b/src/components/settings_modal/tabs/general_tab.js @@ -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: {