kopia lustrzana https://dev.funkwhale.audio/funkwhale/funkwhale
Merge branch '864-redirection-logged-in' into 'develop'
Fix #864: Redirect from / to /library when user is logged in Closes #864 See merge request funkwhale/funkwhale!792environments/review-front-deve-otr6gc/deployments/1920
commit
7dab07993b
|
@ -0,0 +1 @@
|
||||||
|
Redirect from / to /library when user is logged in (#864)
|
|
@ -147,7 +147,19 @@ export default {
|
||||||
let msg = this.$pgettext('Content/Home/List item/Verb', 'Get quality metadata about your music thanks to <a href="%{ url }" target="_blank">MusicBrainz</a>')
|
let msg = this.$pgettext('Content/Home/List item/Verb', 'Get quality metadata about your music thanks to <a href="%{ url }" target="_blank">MusicBrainz</a>')
|
||||||
return this.$gettextInterpolate(msg, {url: this.musicbrainzUrl})
|
return this.$gettextInterpolate(msg, {url: this.musicbrainzUrl})
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
watch: {
|
||||||
|
'$store.state.auth.authenticated': {
|
||||||
|
handler (v) {
|
||||||
|
if (v) {
|
||||||
|
console.log('Authenticated, redirecting to /library…')
|
||||||
|
this.$router.push('/library')
|
||||||
|
}
|
||||||
|
},
|
||||||
|
immediate: true
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue