From d0ab3c0b1b1aff197a36bb93c21753d7ade55e67 Mon Sep 17 00:00:00 2001 From: uwaa Date: Tue, 21 Jan 2025 02:32:07 +0000 Subject: [PATCH] add override_instance_wallpaper setting --- src/App.js | 2 +- src/components/settings_modal/tabs/profile_tab.vue | 5 +++++ src/i18n/en.json | 1 + src/modules/config.js | 1 + 4 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/App.js b/src/App.js index 3e0d0d6f..898cda59 100644 --- a/src/App.js +++ b/src/App.js @@ -76,7 +76,7 @@ export default { ? null : this.$store.state.instance.background }, - background () { return this.pageBackground || this.userBackground || this.instanceBackground }, + background () { return this.pageBackground || (this.$store.getters.mergedConfig.overrideInstanceWallpaper && this.userBackground) || this.instanceBackground }, bgStyle () { if (this.background) { return { diff --git a/src/components/settings_modal/tabs/profile_tab.vue b/src/components/settings_modal/tabs/profile_tab.vue index b08b1210..2cfb46e3 100644 --- a/src/components/settings_modal/tabs/profile_tab.vue +++ b/src/components/settings_modal/tabs/profile_tab.vue @@ -224,6 +224,11 @@ /> + + {{ $t('settings.override_instance_wallpaper') }} +

{{ $t('settings.set_new_profile_background') }}