From 8a58de5c9fd7b275df2c79eafa8260a9e1fb706e Mon Sep 17 00:00:00 2001 From: tusooa Date: Thu, 6 Apr 2023 14:25:19 -0400 Subject: [PATCH] Allow confirmation on closing edit form --- src/components/edit_status_form/edit_status_form.js | 3 +++ src/components/edit_status_form/edit_status_form.vue | 1 + src/components/edit_status_modal/edit_status_modal.js | 3 +++ src/components/edit_status_modal/edit_status_modal.vue | 4 +++- 4 files changed, 10 insertions(+), 1 deletion(-) diff --git a/src/components/edit_status_form/edit_status_form.js b/src/components/edit_status_form/edit_status_form.js index 9a0bcc0e..32376337 100644 --- a/src/components/edit_status_form/edit_status_form.js +++ b/src/components/edit_status_form/edit_status_form.js @@ -12,6 +12,9 @@ const EditStatusForm = { } }, methods: { + requestClose () { + this.$refs.postStatusForm.requestClose() + }, doEditStatus ({ status, spoilerText, sensitive, media, contentType, poll }) { const params = { store: this.$store, diff --git a/src/components/edit_status_form/edit_status_form.vue b/src/components/edit_status_form/edit_status_form.vue index eee2d39a..0a7ec760 100644 --- a/src/components/edit_status_form/edit_status_form.vue +++ b/src/components/edit_status_form/edit_status_form.vue @@ -1,5 +1,6 @@