0
0
Fork 0
mirror of https://github.com/VueTubeApp/VueTube synced 2024-12-22 16:30:20 +00:00

back action for replies drawer closes #399

This commit is contained in:
Nikita Krupin 2022-12-27 12:36:30 -05:00
parent 75b5aaf88d
commit 1f4cda1933

View file

@ -63,6 +63,8 @@ import commentsHeaderRenderer from "~/components/Comments/commentsHeaderRenderer
import mainCommentReplyRenderer from "~/components/Comments/mainCommentReplyRenderer.vue";
import continuationItemRenderer from "~/components/observer.vue";
import backType from "~/plugins/classes/backType";
export default {
components: {
dialogBase,
@ -144,6 +146,18 @@ export default {
openReply(event) {
this.showReply = true;
if (this.showReply) {
const dismissReply = new backType(
() => {
this.showReply = false;
},
() => {
return this.showReply;
}
);
this.$vuetube.addBackAction(dismissReply);
}
this.replyData = { parent: event, replyContinuation: null };
},
},