refactor: ♻️ move nsfw functionality into root component
This commit is contained in:
parent
ae5d4d2633
commit
6823eeb92f
3 changed files with 18 additions and 22 deletions
10
src/App.vue
10
src/App.vue
|
@ -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>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue