mtbarta / monocorpus

A notepad for software and machine learning
GNU Affero General Public License v3.0
232 stars 13 forks source link

Frontend - NoteMenu incorrectly highlights titles #16

Closed mtbarta closed 6 years ago

mtbarta commented 6 years ago

I expect that the NoteMenu would highlight the current filtered title in the primary color. This behavior is set in the vuetify element.

What I'm seeing is that every title gets highlighted. This is probably related to the NoteMenu's native click behavior function that was added to change the title filter in vuex.

So, theoretically a solution to this problem is using an event handler object as mentioned in #14

mtbarta commented 6 years ago

5692397643a0ccee372206c16a41f428650ee020

forgot to tag this commit.

The router-link element seemed to be the cause of highlighting all links in a list. I had to explicitly define a click function and the value set for active elements.

The behavior looks correct now.