Compare commits

..

No commits in common. "4ea48dafb938d740bbaa5d89f460e8fee89fd14f" and "7d5c2e32cc3308b80cca7239b466f723c89b7f58" have entirely different histories.

4 changed files with 13 additions and 9 deletions

View file

@ -83,7 +83,7 @@ export default {
window.addEventListener('resize', this.updateMobileState)
this.scrollParent.addEventListener('scroll', this.updateScrollState)
if (this.themeApplied) {
if (useInterfaceStore().themeApplied) {
this.setThemeBodyClass()
this.removeSplash()
}

View file

@ -24,6 +24,9 @@ const ClutterTab = {
HelpIndicator,
},
computed: {
instanceSpecificPanelPresent() {
return useInstanceStore().showInstanceSpecificPanel
},
...SharedComputedObject(),
...mapState(useServerSideStorageStore, {
muteFilters: (store) =>

View file

@ -91,6 +91,9 @@ const FilteringTab = {
HelpIndicator,
},
computed: {
instanceSpecificPanelPresent() {
return useInstanceStore().instanceIdentity.showInstanceSpecificPanel
},
...SharedComputedObject(),
...mapState(useServerSideStorageStore, {
muteFilters: (store) =>

View file

@ -1,5 +1,3 @@
import { mapState } from 'pinia'
import BooleanSetting from '../helpers/boolean_setting.vue'
import ChoiceSetting from '../helpers/choice_setting.vue'
import ProfileSettingIndicator from '../helpers/profile_setting_indicator.vue'
@ -33,12 +31,12 @@ const GeneralTab = {
ProfileSettingIndicator,
},
computed: {
...mapState(useInstanceStore, {
postFormats: (store) => store.featureSet.postFormats || [],
instanceSpecificPanelPresent: (store) =>
store.instanceIdentity.instanceSpecificPanelPresent,
instanceShoutboxPresent: (store) => store.featureSet.shoutAvailable,
}),
postFormats() {
return useInstanceStore().featureSet.postFormats || []
},
instanceShoutboxPresent() {
return useInstanceStore().featureSet.shoutAvailable
},
columns() {
const mode = this.$store.getters.mergedConfig.thirdColumnMode