# HG changeset patch # User Markus Kottlaender # Date 1542700073 -3600 # Node ID 957907eaaa72acf6a335abd0c5ba0c421c361e23 # Parent d395b2940a820c98eb0238ac43a3fd83c7f64f67 implemented context sensitive box below search bar (see: issue224) diff -r d395b2940a82 -r 957907eaaa72 client/src/App.vue --- a/client/src/App.vue Tue Nov 20 00:51:33 2018 +0100 +++ b/client/src/App.vue Tue Nov 20 08:47:53 2018 +0100 @@ -6,9 +6,7 @@
- - - +
@@ -90,9 +88,7 @@ Layers: () => import("./layers/Layers"), Sidebar: () => import("./application/Sidebar"), Search: () => import("./application/Search"), - Bottlenecks: () => import("./bottlenecks/Bottlenecks"), - Imports: () => import("./imports/Imports.vue"), - Staging: () => import("./staging/Staging.vue") + Contextbox: () => import("./application/Contextbox") } }; diff -r d395b2940a82 -r 957907eaaa72 client/src/application/Contextbox.vue --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/client/src/application/Contextbox.vue Tue Nov 20 08:47:53 2018 +0100 @@ -0,0 +1,88 @@ + + + + + diff -r d395b2940a82 -r 957907eaaa72 client/src/application/Search.vue --- a/client/src/application/Search.vue Tue Nov 20 00:51:33 2018 +0100 +++ b/client/src/application/Search.vue Tue Nov 20 08:47:53 2018 +0100 @@ -14,7 +14,7 @@ type="text" :class="searchInputStyle" > -
@@ -30,7 +30,7 @@ Import soundingresults
@@ -96,10 +96,8 @@ ...mapState("user", ["user"]), ...mapState("application", [ "showSidebar", - "showBottlenecks", - "showImportSoundingResults", - "showStagingArea", - "showSearchbarLastState" + "showSearchbarLastState", + "showInContextBox" ]), menuStyle() { return { @@ -126,10 +124,12 @@ this.$store.commit("application/showSplitscreen", false); this.$router.push("/login"); }, - toggleBottlenecks() { - this.$store.commit("application/showBottlenecks", !this.showBottlenecks); - this.$store.commit("application/showImportSoundingResults", false); - if (this.showBottlenecks) { + toggleContextBox(context) { + this.$store.commit( + "application/showInContextBox", + this.showInContextBox === context ? null : context + ); + if (this.showInContextBox === context) { this.$store.commit("application/showSearchbar", true); } else { this.$store.commit( @@ -137,13 +137,6 @@ this.showSearchbarLastState ); } - }, - toggleImportSoundingResults() { - this.$store.commit( - "application/showImportSoundingResults", - !this.showImportSoundingResults - ); - this.$store.commit("application/showBottlenecks", false); } } }; diff -r d395b2940a82 -r 957907eaaa72 client/src/bottlenecks/Bottlenecks.vue --- a/client/src/bottlenecks/Bottlenecks.vue Tue Nov 20 00:51:33 2018 +0100 +++ b/client/src/bottlenecks/Bottlenecks.vue Tue Nov 20 08:47:53 2018 +0100 @@ -1,8 +1,5 @@