summaryrefslogtreecommitdiff
path: root/packages/frontend/src/components
diff options
context:
space:
mode:
authorMarie <github@yuugi.dev>2024-10-02 17:26:23 +0200
committerMarie <github@yuugi.dev>2024-10-02 17:26:23 +0200
commit321e7daab53a91464b9fd2f91f365dd01f42a9da (patch)
treea343365e320599993f55e5ade8292cedfd2baa4b /packages/frontend/src/components
parentupd: remove duplication (diff)
downloadsharkey-321e7daab53a91464b9fd2f91f365dd01f42a9da.tar.gz
sharkey-321e7daab53a91464b9fd2f91f365dd01f42a9da.tar.bz2
sharkey-321e7daab53a91464b9fd2f91f365dd01f42a9da.zip
chore: add comments
Diffstat (limited to 'packages/frontend/src/components')
-rw-r--r--packages/frontend/src/components/MkPostFormDialog.vue2
1 files changed, 2 insertions, 0 deletions
diff --git a/packages/frontend/src/components/MkPostFormDialog.vue b/packages/frontend/src/components/MkPostFormDialog.vue
index 116ea86873..811a6378f2 100644
--- a/packages/frontend/src/components/MkPostFormDialog.vue
+++ b/packages/frontend/src/components/MkPostFormDialog.vue
@@ -51,7 +51,9 @@ function onPosted() {
}
function onCancel() {
+ // for some reason onModalClosed does not get called properly when closing the model through other functions.
modal.value?.close();
+ // emit is required so that the dialog gets properly disposed otherwise it will float around as a "zombie"
emit('closed', true);
}