comparison client/src/components/Sidebar.vue @ 2983:2e7c0f9cff24

client: removed unnecessary component property
author Markus Kottlaender <markus@intevation.de>
date Tue, 09 Apr 2019 16:42:58 +0200
parents 8f266dc8b4e3
children 1b8bb4f89227
comparison
equal deleted inserted replaced
2982:ef79b635857b 2983:2e7c0f9cff24
104 import { displayError } from "@/lib/errors"; 104 import { displayError } from "@/lib/errors";
105 import { HTTP } from "@/lib/http"; 105 import { HTTP } from "@/lib/http";
106 106
107 export default { 107 export default {
108 name: "sidebar", 108 name: "sidebar",
109 props: ["routeName"],
110 data() { 109 data() {
111 return { 110 return {
112 stagingNotifications: null 111 stagingNotifications: null
113 }; 112 };
114 }, 113 },
144 }, 143 },
145 isActive(item) { 144 isActive(item) {
146 return ( 145 return (
147 this.showContextBox && 146 this.showContextBox &&
148 this.contextBoxContent === item && 147 this.contextBoxContent === item &&
149 this.routeName == "mainview" 148 this.$route.name == "mainview"
150 ); 149 );
151 } 150 }
152 }, 151 },
153 mounted() { 152 mounted() {
154 const updateIndicators = () => { 153 const updateIndicators = () => {