Mercurial > gemma
diff client/src/logs/logs.vue @ 1123:d9e6a1f6f394 store-refactoring
moved all collapse flags for UI elements to store
UI elements can now be expanded/collapsed via the application store
author | Markus Kottlaender <markus@intevation.de> |
---|---|
date | Tue, 06 Nov 2018 13:00:17 +0100 |
parents | 51e42c2e110a |
children | b23622905a3f |
line wrap: on
line diff
--- a/client/src/logs/logs.vue Tue Nov 06 11:21:29 2018 +0100 +++ b/client/src/logs/logs.vue Tue Nov 06 13:00:17 2018 +0100 @@ -103,7 +103,7 @@ * Author(s): * Thomas Junk <thomas.junk@intevation.de> */ -import { mapGetters } from "vuex"; +import { mapState } from "vuex"; import { HTTP } from "../application/lib/http.js"; import "../../node_modules/highlight.js/styles/paraiso-dark.css"; import Vue from "vue"; @@ -144,7 +144,7 @@ } }, computed: { - ...mapGetters("application", ["sidebarCollapsed", "isUsermenuCollapsed"]), + ...mapState("application", ["showSidebar"]), accesslogStyle() { return { active: this.currentLog == ACCESSLOG, @@ -160,8 +160,8 @@ spacer() { return { spacer: true, - "spacer-expanded": !this.sidebarCollapsed, - "spacer-collapsed": this.sidebarCollapsed + "spacer-expanded": this.showSidebar, + "spacer-collapsed": !this.showSidebar }; } }