diff --git a/src/components/Editor.vue b/src/components/Editor.vue index 158cb97a..86ea3b37 100644 --- a/src/components/Editor.vue +++ b/src/components/Editor.vue @@ -3,7 +3,7 @@

     
- +
@@ -19,6 +19,9 @@ export default { EditorNewDiscussionButton, }, computed: { + ...mapGetters('file', [ + 'isCurrentTemp', + ]), ...mapGetters('layout', [ 'styles', ]), diff --git a/src/components/Explorer.vue b/src/components/Explorer.vue index e9bcfd75..584ed25c 100644 --- a/src/components/Explorer.vue +++ b/src/components/Explorer.vue @@ -19,7 +19,7 @@ -
+
@@ -34,6 +34,9 @@ export default { ExplorerNode, }, computed: { + ...mapState([ + 'light', + ]), ...mapState('explorer', [ 'newChildNode', ]), @@ -58,7 +61,7 @@ export default { }, }, created() { - this.$store.watch( + this.$watch( () => this.$store.getters['file/current'].id, (currentFileId) => { this.$store.commit('explorer/setSelectedId', currentFileId); diff --git a/src/components/ExplorerNode.vue b/src/components/ExplorerNode.vue index ac299288..5172298e 100644 --- a/src/components/ExplorerNode.vue +++ b/src/components/ExplorerNode.vue @@ -1,5 +1,5 @@ @@ -78,6 +78,9 @@ export default { FindReplace, }, computed: { + ...mapState([ + 'light', + ]), ...mapState('content', [ 'revisionContent', ]), diff --git a/src/components/NavigationBar.vue b/src/components/NavigationBar.vue index f50033cb..d351162a 100644 --- a/src/components/NavigationBar.vue +++ b/src/components/NavigationBar.vue @@ -2,11 +2,13 @@