mirror of
https://github.com/VueTubeApp/VueTube
synced 2024-11-25 12:45:17 +00:00
back action for replies drawer closes #399
This commit is contained in:
parent
75b5aaf88d
commit
1f4cda1933
1 changed files with 14 additions and 0 deletions
|
@ -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 };
|
||||
},
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue