mirror of
https://github.com/VueTubeApp/VueTube
synced 2024-11-25 20:55: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 mainCommentReplyRenderer from "~/components/Comments/mainCommentReplyRenderer.vue";
|
||||||
import continuationItemRenderer from "~/components/observer.vue";
|
import continuationItemRenderer from "~/components/observer.vue";
|
||||||
|
|
||||||
|
import backType from "~/plugins/classes/backType";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
dialogBase,
|
dialogBase,
|
||||||
|
@ -144,6 +146,18 @@ export default {
|
||||||
|
|
||||||
openReply(event) {
|
openReply(event) {
|
||||||
this.showReply = true;
|
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 };
|
this.replyData = { parent: event, replyContinuation: null };
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue