From f56298adbd6fc4b30f759f58336f881e9ebfab65 Mon Sep 17 00:00:00 2001 From: Sean King Date: Tue, 21 Jun 2022 17:44:04 -0600 Subject: [PATCH] Add ability to detect whether backend supports editing --- src/App.js | 1 + src/App.vue | 4 ++-- src/boot/after_store.js | 1 + src/components/extra_buttons/extra_buttons.js | 3 ++- src/components/extra_buttons/extra_buttons.vue | 4 ++-- 5 files changed, 8 insertions(+), 5 deletions(-) diff --git a/src/App.js b/src/App.js index af638a1c..f87b3962 100644 --- a/src/App.js +++ b/src/App.js @@ -94,6 +94,7 @@ export default { return this.$store.getters.mergedConfig.alwaysShowNewPostButton || this.layoutType === 'mobile' }, showFeaturesPanel () { return this.$store.state.instance.showFeaturesPanel }, + editingAvailable () { return this.$store.state.instance.editingAvailable }, shoutboxPosition () { return this.$store.getters.mergedConfig.alwaysShowNewPostButton || false }, diff --git a/src/App.vue b/src/App.vue index 1b513e08..c20a4d9d 100644 --- a/src/App.vue +++ b/src/App.vue @@ -52,8 +52,8 @@ - - + +