Fix #725: Merged artist/album buttons with title text on artist and album pages

This commit is contained in:
Eliot Berriot 2019-02-25 14:28:25 +01:00
parent a82fb45ce6
commit eefb500f71
No known key found for this signature in database
GPG key ID: DD6965E2476E5C27
4 changed files with 27 additions and 25 deletions

View file

@ -93,6 +93,18 @@ export default {
handler: this.incrementNotificationCountInSidebar
})
},
mounted () {
let self = this
// slight hack to allow use to have internal links in <translate> tags
// while preserving router behaviour
document.documentElement.addEventListener('click', function (event) {
if (!event.target.matches('a.internal')) return;
self.$router.push(event.target.getAttribute('href'))
event.preventDefault();
}, false);
},
destroyed () {
this.$store.commit('ui/removeWebsocketEventHandler', {
eventName: 'inbox.item_added',