From 929a513ad745c3d756d62979a892a03fed198609 Mon Sep 17 00:00:00 2001 From: Bubka <858858+Bubka@users.noreply.github.com> Date: Fri, 3 Nov 2023 13:20:40 +0100 Subject: [PATCH] Set Back/Close/Cancel buttons using a component --- resources/js_vue3/app.js | 2 + .../components/DestinationGroupSelector.vue | 7 +- resources/js_vue3/components/GroupSwitch.vue | 7 +- .../formElements/ButtonBackCloseCancel.vue | 87 +++++++++++++++++++ resources/js_vue3/layouts/Modal.vue | 9 +- resources/js_vue3/views/About.vue | 14 +-- resources/js_vue3/views/Start.vue | 9 +- resources/js_vue3/views/groups/Groups.vue | 7 +- resources/js_vue3/views/settings/Account.vue | 17 +--- resources/js_vue3/views/settings/OAuth.vue | 16 +--- resources/js_vue3/views/settings/Options.vue | 17 +--- resources/js_vue3/views/settings/WebAuthn.vue | 16 +--- .../js_vue3/views/twofaccounts/Capture.vue | 5 +- .../views/twofaccounts/CreateUpdate.vue | 8 +- .../js_vue3/views/twofaccounts/Import.vue | 7 +- .../js_vue3/views/twofaccounts/QRcode.vue | 9 +- 16 files changed, 104 insertions(+), 133 deletions(-) create mode 100644 resources/js_vue3/components/formElements/ButtonBackCloseCancel.vue diff --git a/resources/js_vue3/app.js b/resources/js_vue3/app.js index 7f8fa48e..b6f023bd 100644 --- a/resources/js_vue3/app.js +++ b/resources/js_vue3/app.js @@ -49,6 +49,7 @@ import FormWrapper from '@/layouts/FormWrapper.vue' import Footer from '@/layouts/Footer.vue' import Modal from '@/layouts/Modal.vue' import VueButton from '@/components/formElements/Button.vue' +import ButtonBackCloseCancel from '@/components/formElements/ButtonBackCloseCancel.vue' import FieldError from '@/components/formElements/FieldError.vue' import FormField from '@/components/formElements/FormField.vue' import FormPasswordField from '@/components/formElements/FormPasswordField.vue' @@ -65,6 +66,7 @@ app .component('VueFooter', Footer) .component('Modal', Modal) .component('VueButton', VueButton) + .component('ButtonBackCloseCancel', ButtonBackCloseCancel) .component('FieldError', FieldError) .component('FormField', FormField) .component('FormPasswordField', FormPasswordField) diff --git a/resources/js_vue3/components/DestinationGroupSelector.vue b/resources/js_vue3/components/DestinationGroupSelector.vue index c57ad681..69497bb5 100644 --- a/resources/js_vue3/components/DestinationGroupSelector.vue +++ b/resources/js_vue3/components/DestinationGroupSelector.vue @@ -62,12 +62,7 @@
- -
-
-
+
+ + +
+ \ No newline at end of file diff --git a/resources/js_vue3/layouts/Modal.vue b/resources/js_vue3/layouts/Modal.vue index 1010ccbf..b1a07617 100644 --- a/resources/js_vue3/layouts/Modal.vue +++ b/resources/js_vue3/layouts/Modal.vue @@ -1,6 +1,4 @@ @@ -31,12 +29,7 @@ \ No newline at end of file