Commit 06587bcb authored by Anton's avatar Anton

Remove currentRoute store prop usage

parent 9ff976f0
Pipeline #14207 passed with stage
in 33 seconds
......@@ -300,7 +300,6 @@
grid: undefined,
breadcrumbs: [],
currentApp: null,
currentRoute: undefined,
env: process.env,
routes: {
piecemaker: [
......@@ -335,14 +334,16 @@
},
computed: {
...mapGetters({
user: 'auth/getUserState',
isMobile: 'globalSettings/getIsMobile'
user: 'auth/getUserState'
}),
userHasDocuments () {
return userHasFeature(this.user, 'documents')
},
isElectron () {
return this.$q.platform.is.electron
},
currentRoute () {
return this.$route.name
}
},
async mounted () {
......@@ -351,7 +352,6 @@
watch: {
'$route' (route) {
this.checkRoute(route)
this.currentRoute = route.name
}
},
methods: {
......
......@@ -10,8 +10,6 @@
</template>
<script>
import { mapGetters } from 'vuex'
export default {
name: 'user-nav-button',
props: ['label', 'name', 'route', 'icon'],
......@@ -21,9 +19,9 @@
}
},
computed: {
...mapGetters({
currentRoute: 'globalSettings/getCurrentRoute'
})
currentRoute () {
return this.$route.name
}
},
mounted () {
if (this.currentRoute === 'piecemaker.timelines.show' && this.name === 'piecemaker.timelines.list') {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment