Browse Source

Remove vuex getter from TheSideBar.vue

pull/1251/head
Hironsan 4 years ago
parent
commit
0765824be3
1 changed files with 2 additions and 4 deletions
  1. 6
      frontend/components/layout/TheSideBar.vue

6
frontend/components/layout/TheSideBar.vue

@ -35,8 +35,6 @@
</template>
<script>
import { mapGetters } from 'vuex'
export default {
props: {
link: {
@ -58,7 +56,6 @@ export default {
},
computed: {
...mapGetters('projects', ['loadSearchOptions']),
filteredItems() {
const items = [
{ icon: 'mdi-home', text: this.$t('projectHome.home'), link: '', adminOnly: false },
@ -79,9 +76,10 @@ export default {
return !item.adminOnly || this.role.is_project_admin
},
toLabeling() {
const query = this.$services.option.findOption(this.$route.params.id)
this.$router.push({
path: this.localePath(`/projects/${this.$route.params.id}/${this.link}`),
query: this.loadSearchOptions
query
})
}
}

Loading…
Cancel
Save