Move shout module to store

This commit is contained in:
Sean King 2023-04-04 21:17:54 -06:00
commit aa6c13f9e6
No known key found for this signature in database
GPG key ID: 510C52BACD6E7257
8 changed files with 50 additions and 61 deletions

View file

@ -17,6 +17,7 @@ import GlobalNoticeList from './components/global_notice_list/global_notice_list
import { windowWidth, windowHeight } from './services/window_utils/window_utils'
import { mapGetters } from 'vuex'
import { defineAsyncComponent } from 'vue'
import { useShoutStore } from './stores/shout'
export default {
name: 'app',
@ -86,7 +87,7 @@ export default {
}
}
},
shout () { return this.$store.state.shout.joined },
shout () { return useShoutStore().joined },
suggestionsEnabled () { return this.$store.state.instance.suggestionsEnabled },
showInstanceSpecificPanel () {
return this.$store.state.instance.showInstanceSpecificPanel &&