From 464f33679040d31b3a61e75016f2cac1efb46bf7 Mon Sep 17 00:00:00 2001 From: Redblueflame Date: Tue, 30 Mar 2021 18:02:45 +0200 Subject: [PATCH] Confirm popups (#135) * Added confirmation popup for account deletion (I nearly deleted my account twice, please help me) Added component for easy adding of new confirmation popups. * Add confirmation popup for mod deleting * Add confirmation popup for version & file deletion * Changed the placeholder to a generic value --- components/ConfirmPopup.vue | 152 +++++++++++++++++++++++ components/Popup.vue | 1 - pages/dashboard/settings.vue | 16 ++- pages/mod/_id/settings.vue | 20 ++- pages/mod/_id/version/_version/index.vue | 30 ++++- 5 files changed, 214 insertions(+), 5 deletions(-) create mode 100644 components/ConfirmPopup.vue diff --git a/components/ConfirmPopup.vue b/components/ConfirmPopup.vue new file mode 100644 index 000000000..d4afc6e95 --- /dev/null +++ b/components/ConfirmPopup.vue @@ -0,0 +1,152 @@ + + + + + diff --git a/components/Popup.vue b/components/Popup.vue index 4a0cba68d..299b55c37 100644 --- a/components/Popup.vue +++ b/components/Popup.vue @@ -40,7 +40,6 @@ export default { transform: translate(-50%, -50%); z-index: 2; box-shadow: 0 2px 3px 1px var(--color-button-bg); - padding: 5px 60px 5px 20px; border-radius: 10px; max-height: 80%; overflow-y: auto; diff --git a/pages/dashboard/settings.vue b/pages/dashboard/settings.vue index 3d02ca61f..053c9025d 100644 --- a/pages/dashboard/settings.vue +++ b/pages/dashboard/settings.vue @@ -1,6 +1,16 @@ /* eslint-disable vue/attribute-hyphenation */