Changes castle wallet to a select field.

Updates the castle wallet ID input to a select field populated with available wallet options.
This change improves usability by providing a predefined list of wallet options.
It also disables the save button if no wallet is selected.
This commit is contained in:
padreug 2025-10-22 15:10:52 +02:00
parent bb1dbcccd8
commit f1ada5e290

View file

@ -304,17 +304,19 @@
</div> </div>
</q-banner> </q-banner>
<q-input <q-select
filled filled
dense dense
v-model.trim="settingsDialog.castleWalletId" emit-value
label="Castle Wallet ID *" v-model="settingsDialog.castleWalletId"
placeholder="The wallet ID that represents the Castle" :options="g.user.walletOptions"
label="Castle Wallet *"
:readonly="!isSuperUser" :readonly="!isSuperUser"
></q-input> :disable="!isSuperUser"
></q-select>
<div class="text-caption text-grey"> <div class="text-caption text-grey">
This wallet will be used for Castle operations and transactions. Select the wallet that will be used for Castle operations and transactions.
</div> </div>
<div class="row q-mt-lg"> <div class="row q-mt-lg">
@ -324,6 +326,7 @@
color="primary" color="primary"
type="submit" type="submit"
:loading="settingsDialog.loading" :loading="settingsDialog.loading"
:disable="!settingsDialog.castleWalletId"
> >
Save Settings Save Settings
</q-btn> </q-btn>