mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-04 02:19:16 +02:00
Fix #725: Merged artist/album buttons with title text on artist and album pages
This commit is contained in:
parent
a82fb45ce6
commit
eefb500f71
4 changed files with 27 additions and 25 deletions
|
@ -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',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue