refactor: ♻️ move nsfw functionality into root component

This commit is contained in:
Sebin Nyshkim 2022-01-06 04:30:57 +01:00
parent ae5d4d2633
commit 6823eeb92f
3 changed files with 18 additions and 22 deletions

View file

@ -19,6 +19,9 @@ export default {
components: { Navigation },
data() {
return {
nsfw: false,
isConfirmedHorny: false,
isWarn: false,
routes: [
{ path: "/", name: "Home" },
{ path: "/general", name: "General" },
@ -29,6 +32,13 @@ export default {
],
};
},
methods: {
showWarning() {
if (!this.isConfirmedHorny) {
this.isWarn = true;
}
},
}
};
</script>