You've already forked AstralRinth
forked from didirus/AstralRinth
Fix issues (#158)
* Fix accept all button simply not working * Switched privacy settings icons to a shield Fixed auth changing the theme and consent Fixed server error on log in / out * Fixed scrolling issue on mobile * Fixed GPDR concerns
This commit is contained in:
@@ -165,6 +165,7 @@ export default {
|
||||
watch: {
|
||||
$route() {
|
||||
this.$refs.nav.className = 'right-group'
|
||||
document.body.style.overflow = 'auto'
|
||||
},
|
||||
},
|
||||
methods: {
|
||||
@@ -186,7 +187,18 @@ export default {
|
||||
},
|
||||
async logout() {
|
||||
this.$cookies.set('auth-token-reset', true)
|
||||
await this.$router.go(null)
|
||||
// If users logs out on dashboard, redirect on the home page
|
||||
if (this.$route.path.startsWith('/dashboard')) {
|
||||
await this.$router.push('/')
|
||||
} else {
|
||||
await this.$router.go(null)
|
||||
}
|
||||
this.$notify({
|
||||
group: 'main',
|
||||
title: 'Logged Out',
|
||||
text: 'You have logged out successfully!',
|
||||
type: 'success',
|
||||
})
|
||||
},
|
||||
changeTheme() {
|
||||
this.$colorMode.preference =
|
||||
@@ -198,6 +210,8 @@ export default {
|
||||
|
||||
<style lang="scss">
|
||||
.layout {
|
||||
overflow-y: auto;
|
||||
overflow-x: hidden;
|
||||
background-color: var(--color-bg);
|
||||
display: block;
|
||||
height: 100vh;
|
||||
|
||||
Reference in New Issue
Block a user