@@ -16,6 +16,8 @@ const { addToast } = useToasts()
1616
1717const { copy } = useClipboard ()
1818
19+ const DISPLAY_DROPDOWN = false
20+
1921const props = defineProps <{
2022 debtorAccounts: Account []
2123}>()
@@ -157,10 +159,10 @@ async function startTransaction() {
157159 required
158160 pattern =" ^[A-Z]{6}[A-Z0-9]{2}([A-Z0-9]{3})?$"
159161 title =" BIC/Swift code must be 8 or 11 characters (e.g., DEUTDEFF)"
160- list =" bicList"
162+ : list =" DISPLAY_DROPDOWN ? ' bicList' : undefined "
161163 />
162- <datalist id =" bicList" >
163- <!-- < option v-for="bic in utils.bics" :key="bic" :value="bic">{{ bic }}</option> -- >
164+ <datalist v-if = " DISPLAY_DROPDOWN " id =" bicList" >
165+ <option v-for =" bic in utils.bics" :key =" bic" :value =" bic" >{{ bic }}</option >
164166 </datalist >
165167 <div class =" validator-hint" >BIC/Swift code must be 8 or 11 characters</div >
166168 </label >
@@ -172,7 +174,7 @@ async function startTransaction() {
172174 </div >
173175 <input
174176 id =" creditorIban"
175- list =" ibanList"
177+ : list =" DISPLAY_DROPDOWN ? ' ibanList' : undefined "
176178 v-model =" form.creditorAccountId"
177179 type =" text"
178180 placeholder =" Enter IBAN"
@@ -181,8 +183,8 @@ async function startTransaction() {
181183 pattern =" ^[A-Z]{2}[0-9]{2}[A-Z0-9]{1,30}$"
182184 title =" IBAN must start with 2 letters, followed by 2 digits, then up to 30 alphanumeric characters"
183185 />
184- <datalist id =" ibanList" >
185- <!-- < option v-for="iban in utils.ibans" :key="iban" :value="iban">{{ iban }}</option> -- >
186+ <datalist v-if = " DISPLAY_DROPDOWN " id =" ibanList" >
187+ <option v-for =" iban in utils.ibans" :key =" iban" :value =" iban" >{{ iban }}</option >
186188 </datalist >
187189 <div class =" validator-hint" >Valid IBAN required (e.g., DE89370400440532013000)</div >
188190 </label >
0 commit comments