Skip to content

Commit

Permalink
feat: add account deleted flag if deleted account selected in transfer
Browse files Browse the repository at this point in the history
Signed-off-by: Svetoslav Borislavov <[email protected]>
  • Loading branch information
SvetBorislavov committed Jun 26, 2024
1 parent fbbce0a commit d4f78a6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions front-end/src/renderer/components/TransferCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,9 @@ watch([amount, accountData.isValid], async ([newAmount]) => {
<form @submit="handleSubmit">
<div class="form-group overflow-hidden position-relative">
<label class="form-label mb-0 me-3">{{ accountLabel }}</label>
<label v-if="accountData.accountInfo.value?.deleted" class="form-label text-secondary me-3"
>Account is deleted</label
>
<label
v-if="showBalanceInLabel && accountData.isValid.value"
class="form-label text-secondary"
Expand All @@ -141,6 +144,7 @@ watch([amount, accountData.isValid], async ([newAmount]) => {
stringifyHbar((accountData.accountInfo.value?.balance as Hbar) || new Hbar(0))
}}</label
>

<AppAutoComplete
:model-value="accountData.accountIdFormatted.value"
@update:model-value="v => (accountData.accountId.value = formatAccountId(v))"
Expand Down

0 comments on commit d4f78a6

Please sign in to comment.