kopia lustrzana https://dev.funkwhale.audio/funkwhale/funkwhale
Fix #864: Redirect from / to /library when user is logged in
rodzic
d8dd76f199
commit
5fd27250e2
|
@ -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>')
|
||||
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>
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue