From ea9828328ecd370a76dbff1430afcf6cb33ffad6 Mon Sep 17 00:00:00 2001 From: alexm Date: Mon, 13 Feb 2023 15:19:43 +0100 Subject: [PATCH] feat(claim): migrate photos section --- .eslintrc.js | 1 + .../ui/{Confirm.vue => VnConfirm.vue} | 27 ++- src/pages/Claim/Card/ClaimPhoto.vue | 207 ++++++++++++++++++ src/router/modules/claim.js | 11 +- 4 files changed, 240 insertions(+), 6 deletions(-) rename src/components/ui/{Confirm.vue => VnConfirm.vue} (62%) create mode 100644 src/pages/Claim/Card/ClaimPhoto.vue diff --git a/.eslintrc.js b/.eslintrc.js index d2fe165a5..09dc09c1e 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -57,6 +57,7 @@ module.exports = { // add your custom rules here rules: { 'prefer-promise-reject-errors': 'off', + 'no-unused-vars': 'warn', // allow debugger during development only 'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off', diff --git a/src/components/ui/Confirm.vue b/src/components/ui/VnConfirm.vue similarity index 62% rename from src/components/ui/Confirm.vue rename to src/components/ui/VnConfirm.vue index bd261f7b4..2c84eeac3 100644 --- a/src/components/ui/Confirm.vue +++ b/src/components/ui/VnConfirm.vue @@ -4,13 +4,17 @@ import { useDialogPluginComponent } from 'quasar'; import { useI18n } from 'vue-i18n'; const $props = defineProps({ - question: { + icon: { type: String, default: '', }, + question: { + type: String, + default: 'Confirm', + }, message: { type: String, - default: '', + default: 'Are you sure you want to continue?', }, }); @@ -20,13 +24,21 @@ const { dialogRef, onDialogOK } = useDialogPluginComponent(); const { t } = useI18n(); const question = ref($props.question); -const message = ref($props.question); +const message = ref($props.message); const isLoading = ref(false);