refine isConfirmDisabled
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user