From bbe592e7f9bd4bc16e5d035b836e9c1a9f499bde 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 5310d504..3690b944 100644 --- a/src/App.js +++ b/src/App.js @@ -87,6 +87,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 }, layoutType () { return this.$store.state.interface.layoutType }, privateMode () { return this.$store.state.instance.private }, reverseLayout () { diff --git a/src/App.vue b/src/App.vue index 624d3b9e..01ac0b51 100644 --- a/src/App.vue +++ b/src/App.vue @@ -58,8 +58,8 @@ - - + +