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

@ -23,9 +23,9 @@
export default {
methods: {
confirmNsfw(input) {
this.$parent.nsfw = input;
this.$parent.isConfirmedHorny = input;
this.$parent.isWarn = false;
this.$root.nsfw = input;
this.$root.isConfirmedHorny = input;
this.$root.isWarn = false;
},
},
};