new config guest_redirection added

This commit is contained in:
Milos Stojanovic
2020-05-09 18:13:14 +02:00
parent b067207179
commit a533eef33a
6 changed files with 13 additions and 2 deletions

View File

@@ -1,5 +1,5 @@
<template>
<div>
<div v-if="!$store.state.config.guest_redirection">
<a v-if="can('read')" id="back-arrow" @click="$router.push('/')">
<b-icon icon="times" />
</a>
@@ -48,6 +48,10 @@ export default {
}
},
mounted() {
if (this.$store.state.config.guest_redirection) {
window.location.href = this.$store.state.config.guest_redirection
return
}
this.$refs.username.focus()
},
methods: {