CottageCabbage / vu-dooit

Task Manager application for Web, Desktop and Mobile. Still in development
https://CottageCabbage.github.io/vu-dooit
3 stars 1 forks source link

Narrow sidebar's project page button not receiving the router-link-active class when in any project other than the inbox #21

Open CottageCabbage opened 2 years ago

CottageCabbage commented 2 years ago

It's only for a moment, since you're immediately pushed to the inbox by

created() {
    if (this.$route.path === '/project') {
      this.$router.push('/project/0');
    }
  }

but it's still annoying.

CottageCabbage commented 2 years ago

Nevermind, could just change the router-link's to="" to project/0. Still, now the button won't get the .router-link-active class styling, Think I could manage it by creating a class for it and applying it when route is equal to /project/whatever

Will see if that works