♻️ remove privacy notice, remove table view
This commit is contained in:
@@ -4,14 +4,7 @@
|
||||
Logo
|
||||
Search
|
||||
Sidebar
|
||||
no-ssr
|
||||
template(v-if="showNotice")
|
||||
.cookie
|
||||
p This site uses cookies, please read our
|
||||
nuxt-link.highlighted(to="privacy-policy") Privacy policy.
|
||||
button.highlighted(@click.preventDefault="hideCookieNotice" type="button") X
|
||||
nuxt.content
|
||||
|
||||
</template>
|
||||
|
||||
<script>
|
||||
@@ -44,27 +37,6 @@ export default {
|
||||
showNotice: false,
|
||||
}
|
||||
},
|
||||
beforeMount() {
|
||||
this.checkCookieNoticeHidden()
|
||||
},
|
||||
methods: {
|
||||
hideCookieNotice() {
|
||||
if(typeof(Storage) !== 'undefined'){
|
||||
localStorage.setItem('cookieNoticeHidden', true)
|
||||
this.showNotice = false
|
||||
}
|
||||
},
|
||||
checkCookieNoticeHidden() {
|
||||
if(typeof(Storage) !== 'undefined'){
|
||||
let cookieNotice = localStorage.getItem('cookieNoticeHidden')
|
||||
if(cookieNotice) {
|
||||
this.showNotice = false
|
||||
} else {
|
||||
this.showNotice = true
|
||||
}
|
||||
}
|
||||
},
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user