Skip to content

Commit

Permalink
Experiment with modal for suggested address.
Browse files Browse the repository at this point in the history
  • Loading branch information
edwh committed Jan 29, 2024
1 parent ca2e540 commit 19c0fa5
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions components/ChatFooter.vue
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,11 @@
@keydown.alt.shift.enter.exact.prevent="newline"
@focus="markRead"
/>
<b-modal v-model="showSuggested" title="Send an address?" @cancel="rejectSuggestedAddress">
<b-modal
v-model="showSuggested"
title="Send an address?"
@cancel="rejectSuggestedAddress"
>
<p>Are you trying to send this address?</p>
<p>
<strong>{{ suggestedAddress?.address?.singleline }}</strong>
Expand Down Expand Up @@ -552,11 +556,11 @@ export default {
showSuggested(newVal) {
if (newVal) {
this.$api.bandit.shown({
uid: 'SuggestedAddress2',
uid: 'SuggestedAddress3',
variant: 'chosen',
})
this.$api.bandit.shown({
uid: 'SuggestedAddress2',
uid: 'SuggestedAddress3',
variant: 'cancel',
})
}
Expand Down Expand Up @@ -739,7 +743,7 @@ export default {
async sendSuggestedAddress() {
// We want to send the address. First we need to make sure it's in our address book.
this.$api.bandit.chosen({
uid: 'SuggestedAddress2',
uid: 'SuggestedAddress3',
variant: 'chosen',
})
Expand Down Expand Up @@ -782,8 +786,9 @@ export default {
this.hideSuggestedAddress = true
this.$api.bandit.chosen({
uid: 'SuggestedAddress2',
uid: 'SuggestedAddress3',
variant: 'cancel',
message: this.sendmessage,
})
},
},
Expand Down

0 comments on commit 19c0fa5

Please sign in to comment.