Using generic session ID variable for to determine consent warning, rather than dedicated property.
This commit is contained in:
@@ -45,7 +45,7 @@ function toggleSidebar(state) {
|
||||
async function setConsent(consent) {
|
||||
if (consent) {
|
||||
this.showWarning = false;
|
||||
await this.$store.dispatch('setConsent', true);
|
||||
localStorage.setItem('consent', window.env.sessionId);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -64,7 +64,7 @@ export default {
|
||||
data() {
|
||||
return {
|
||||
showSidebar: false,
|
||||
showWarning: !window.env.consent,
|
||||
showWarning: localStorage.getItem('consent') !== window.env.sessionId,
|
||||
};
|
||||
},
|
||||
computed: {
|
||||
|
||||
Reference in New Issue
Block a user