diff --git a/src/views/AccountManagement/ModalAccountEditCreate.vue b/src/views/AccountManagement/ModalAccountEditCreate.vue index 237cd67..d3ab5d1 100644 --- a/src/views/AccountManagement/ModalAccountEditCreate.vue +++ b/src/views/AccountManagement/ModalAccountEditCreate.vue @@ -195,7 +195,7 @@ export default defineComponent({ const currentViewingUser = computed(() => acctMgmtStore.currentViewingUser); const isPwdEyeOn = ref(false); - const isConfirmDisabled = ref(false); + const isConfirmDisabled = ref(true); const isPwdLengthValid = ref(true); const isResetPwdSectionShow = ref(false); @@ -340,9 +340,15 @@ export default defineComponent({ if(newAccount.length > 0 && newName.length > 0) { isConfirmDisabled.value = false; } - if(isResetPwdSectionShow.value && newPwd.length < PWD_VALID_LENGTH) { - isConfirmDisabled.value = true; - } + if(whichCurrentModal.value !== MODAL_CREATE_NEW) { + if(isResetPwdSectionShow.value && newPwd.length < PWD_VALID_LENGTH) { + isConfirmDisabled.value = true; + } + }else { + if(newPwd.length < PWD_VALID_LENGTH) { + isConfirmDisabled.value = true; + } + } } );