From b8da9956973b05a8d241261d14bd63bdb9e32d33 Mon Sep 17 00:00:00 2001 From: Deepjyoti Barman Date: Wed, 24 Feb 2021 18:32:43 +0530 Subject: [PATCH] Add a modal component to handle modals --- .gitignore | 3 +- src/components/Confirm.vue | 112 +++++++++++-------------------------- src/components/Modal.vue | 87 ++++++++++++++++++++++++++++ src/views/Format.vue | 2 +- 4 files changed, 122 insertions(+), 82 deletions(-) create mode 100644 src/components/Modal.vue diff --git a/.gitignore b/.gitignore index b38fc5f..43d9033 100644 --- a/.gitignore +++ b/.gitignore @@ -20,5 +20,4 @@ pnpm-debug.log* *.ntvs* *.njsproj *.sln -*.sw? -Modal.* +*.sw? \ No newline at end of file diff --git a/src/components/Confirm.vue b/src/components/Confirm.vue index 9cc8e27..bd1957f 100644 --- a/src/components/Confirm.vue +++ b/src/components/Confirm.vue @@ -1,73 +1,44 @@ diff --git a/src/views/Format.vue b/src/views/Format.vue index 8f362a7..96f817b 100644 --- a/src/views/Format.vue +++ b/src/views/Format.vue @@ -83,7 +83,7 @@ export default { if (this.showConfirm) { // Ask the user if they would like to make it the default setting. - this.$refs.confirm.showModal(); + this.$refs.confirm.$refs.modal.showModal(); return; }