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:
Redblueflame
2021-04-11 17:21:07 +02:00
committed by GitHub
parent c06c3d48d2
commit 487c1a58d6
11 changed files with 52 additions and 52 deletions

View File

@@ -1,6 +1,5 @@
<template>
<div>
<ReviewPopup ref="popup" />
<div
ref="container"
class="container"
@@ -22,6 +21,7 @@
</template>
<script>
import scopes from '~/privacy-toggles'
export default {
name: 'CookieConsent',
fetch() {
@@ -42,8 +42,10 @@ export default {
methods: {
hide() {
this.$store.commit('consent/set_consent', true)
this.$store.commit('consent/add_scope', true)
this.$store.commit('consent/remove_scope', true)
// Accept all scopes
for (const elem in scopes.settings) {
this.$store.commit('consent/add_scope', elem)
}
this.$store.dispatch('consent/save', this.$cookies)
this.shown = false