diff --git a/auth-web/package-lock.json b/auth-web/package-lock.json index dcf6458fc2..8374e17e2f 100644 --- a/auth-web/package-lock.json +++ b/auth-web/package-lock.json @@ -1,12 +1,12 @@ { "name": "auth-web", - "version": "2.6.92", + "version": "2.6.93", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "auth-web", - "version": "2.6.92", + "version": "2.6.93", "dependencies": { "@bcrs-shared-components/base-address": "2.0.3", "@bcrs-shared-components/bread-crumb": "1.0.8", diff --git a/auth-web/package.json b/auth-web/package.json index 205386c878..6b2fbf58f4 100644 --- a/auth-web/package.json +++ b/auth-web/package.json @@ -1,6 +1,6 @@ { "name": "auth-web", - "version": "2.6.92", + "version": "2.6.93", "appName": "Auth Web", "sbcName": "SBC Common Components", "private": true, diff --git a/auth-web/src/components/pay/eft/ShortNameFinancialDialog.vue b/auth-web/src/components/pay/eft/ShortNameFinancialDialog.vue index 26ca632cc1..18f0095157 100644 --- a/auth-web/src/components/pay/eft/ShortNameFinancialDialog.vue +++ b/auth-web/src/components/pay/eft/ShortNameFinancialDialog.vue @@ -49,7 +49,7 @@ large color="primary" data-test="dialog-ok-button" - :disabled="isFormValid()" + :disabled="isFormInvalid()" @click="patchShortName()" > Save @@ -84,7 +84,7 @@ export default defineComponent({ }, emits: ['on-patch', 'close-short-name-email-dialog'], setup (props, { emit }) { - const emailAddressRules = CommonUtils.emailRules() + const emailAddressRules = CommonUtils.emailRules(true) const modalDialog: Ref> = ref(null) const accountLinkingErrorDialog: Ref> = ref(null) const state = reactive({ @@ -94,13 +94,13 @@ export default defineComponent({ isDialogTypeCasSupplierNumber: computed(() => props.shortNameFinancialDialogType === 'CAS_SUPPLIER_NUMBER') }) - function isFormValid () { + function isFormInvalid () { if (state.isDialogTypeEmail) { - return emailAddressRules.every(rule => rule(state.email) !== true) + return !state.email || emailAddressRules.some(rule => rule(state.email) !== true) } else if (state.isDialogTypeCasSupplierNumber) { return !state.casSupplierNumber } - return false + return true } function openAccountLinkingDialog (item: EFTShortnameResponse, dialogType) { @@ -158,7 +158,7 @@ export default defineComponent({ patchShortName, emailAddressRules, dialogTitle, - isFormValid + isFormInvalid } } }) diff --git a/auth-web/src/views/pay/eft/ShortNameDetailsView.vue b/auth-web/src/views/pay/eft/ShortNameDetailsView.vue index 0302f25b50..0258641861 100644 --- a/auth-web/src/views/pay/eft/ShortNameDetailsView.vue +++ b/auth-web/src/views/pay/eft/ShortNameDetailsView.vue @@ -16,7 +16,7 @@

{{ shortNameDetails.shortName }}

-

+

Unsettled Amount: {{ unsettledAmount }}

@@ -29,29 +29,29 @@ CAS Supplier Number: {{ shortName.casSupplierNumber || 'N/A' }} mdi-pencil + > mdi-pencil-outline Edit
Email: - {{ shortName.email || 'N/A' }} + mdi-pencil + > mdi-pencil-outline Edit
@@ -240,6 +240,20 @@ export default defineComponent({