From 7a397136d69308731498b6c39faee2b0926e0c04 Mon Sep 17 00:00:00 2001 From: Alexandra Dunn Date: Fri, 22 Jan 2021 21:58:31 -0800 Subject: [PATCH] PinCreate: close window on success Fixes https://github.com/pinry/pinry/issues/246 --- pinry-spa/src/views/PinCreate.vue | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/pinry-spa/src/views/PinCreate.vue b/pinry-spa/src/views/PinCreate.vue index 3ca1a1a..f00bfd2 100644 --- a/pinry-spa/src/views/PinCreate.vue +++ b/pinry-spa/src/views/PinCreate.vue @@ -40,10 +40,7 @@ export default { ); }, onCreated() { - this.$buefy.dialog.alert( - 'Please turn off this page by hand since ' - + 'Javascript has no permission to do this', - ); + window.close(); }, createPin() { modals.openPinEdit(