diff options
| author | Henry Jameson <me@hjkos.com> | 2022-04-10 20:18:54 +0300 |
|---|---|---|
| committer | Henry Jameson <me@hjkos.com> | 2022-04-10 20:18:54 +0300 |
| commit | 3e1b40ce29feae8ab2b13da35eece15df8a7697c (patch) | |
| tree | 59ad1c2282c8845d60336dbb7c60cfb2536625aa /src/App.js | |
| parent | 0f28c28760f7a8615da18630fa49ff963d3f7533 (diff) | |
fix new post button not working day1, minor stylistic fixes
Diffstat (limited to 'src/App.js')
| -rw-r--r-- | src/App.js | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -50,6 +50,16 @@ export default { window.removeEventListener('resize', this.updateMobileState) }, computed: { + classes () { + return [ + { + '-reverse': this.reverseLayout, + '-no-sticky-headers': this.noSticky, + '-has-new-post-button': this.newPostButtonShown + }, + '-' + this.layoutType + ] + }, currentUser () { return this.$store.state.users.currentUser }, userBackground () { return this.currentUser.background_image }, instanceBackground () { @@ -72,6 +82,10 @@ export default { !this.$store.getters.mergedConfig.hideISP && this.$store.state.instance.instanceSpecificPanelContent }, + newPostButtonShown () { + if (this.$route.name === 'chat' || this.$route.name === 'chats') return false + return this.$store.getters.mergedConfig.alwaysShowNewPostButton || this.layoutType === 'mobile' + }, showFeaturesPanel () { return this.$store.state.instance.showFeaturesPanel }, shoutboxPosition () { return this.$store.getters.mergedConfig.showNewPostButton || false |
