sonar qube
This commit is contained in:
@@ -20,7 +20,7 @@
|
||||
'text-[#FF3366]': !isAccountUnique,
|
||||
'border-[#FF3366]': !isAccountUnique,
|
||||
}"
|
||||
@focus="onInputAccountFocus" :readonly="!isEditable"
|
||||
:readonly="!isEditable"
|
||||
@dblclick="onInputDoubleClick"
|
||||
/>
|
||||
<div v-show="!isAccountUnique" class="error-wrapper my-2">
|
||||
@@ -57,7 +57,7 @@
|
||||
<input id="input_first_pwd" class="outline-none p-1 w-[352px]" :type="isPwdEyeOn ? 'text' : 'password'"
|
||||
v-model="inputPwd" :readonly="!isEditable" @dblclick="onInputDoubleClick"/>
|
||||
<img v-if="isPwdEyeOn" src='@/assets/icon-eye-open.svg' class="absolute right-[8px] cursor-pointer"
|
||||
@click="togglePwdEyeBtn"/>
|
||||
@click="togglePwdEyeBtn" alt=""/>
|
||||
<img v-else src='@/assets/icon-eye-hide.svg' class="absolute right-[8px] cursor-pointer" @click="togglePwdEyeBtn" alt="eye"/>
|
||||
</div>
|
||||
</div>
|
||||
@@ -143,7 +143,6 @@ import { useModalStore } from '@/stores/modal.js';
|
||||
import { useRouter } from 'vue-router';
|
||||
import { useToast } from 'vue-toast-notification';
|
||||
import useAcctMgmtStore from '@/stores/acctMgmt';
|
||||
import useLoginStore from '@/stores/login';
|
||||
import ModalHeader from "./ModalHeader.vue";
|
||||
import IconChecked from "@/components/icons/IconChecked.vue";
|
||||
import { MODAL_CREATE_NEW, MODAL_ACCT_EDIT, } from '@/constants/constants.js';
|
||||
@@ -280,19 +279,6 @@ export default defineComponent({
|
||||
isSetActivedChecked.value = !isSetActivedChecked.value;
|
||||
}
|
||||
}
|
||||
const onInputAccountFocus = async() => {
|
||||
// if(!isAccountUnique.value) {
|
||||
// // 之所以要轉回true,是為了讓使用者可以繼續填寫不被阻擋
|
||||
// isAccountUnique.value = true;
|
||||
// }
|
||||
// if(isConfirmDisabled.value){
|
||||
// // 所有欄位都要填寫,confirm按鈕才可點選
|
||||
// if(validateInputLengthAndEquality(inputUserAccount.value, inputName.value, inputPwd.value, inputConfirmPwd.value, isPwdMatched.value)
|
||||
// ){
|
||||
// isConfirmDisabled.value = false;
|
||||
// }
|
||||
// }
|
||||
}
|
||||
|
||||
const onInputNameFocus = () => {
|
||||
if(isConfirmDisabled.value){
|
||||
@@ -350,7 +336,6 @@ export default defineComponent({
|
||||
MODAL_CREATE_NEW,
|
||||
modalTitle,
|
||||
isAccountUnique,
|
||||
onInputAccountFocus,
|
||||
isEditable,
|
||||
};
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user