Skip to content

Commit

Permalink
Disable cancel on send
Browse files Browse the repository at this point in the history
  • Loading branch information
monokh committed Sep 3, 2020
1 parent a4ade8b commit 13bf916
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions src/assets/scss/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,10 @@ svg {

.btn {
width: 152px;

&.btn-primary {
margin-left: auto;
}
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/views/SendConfirm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<div class="wrapper_bottom">
<Warning />
<div class="button-group">
<button class="btn btn-light btn-outline-primary btn-lg" @click="$router.go(-1)">Cancel</button>
<button class="btn btn-light btn-outline-primary btn-lg" v-if="!loading" @click="$router.go(-1)">Cancel</button>
<button class="btn btn-primary btn-lg btn-icon" @click="send" :disabled="loading">
<SpinnerIcon class="btn-loading" v-if="loading" />
<template v-else><SendIcon /> Send</template>
Expand Down
2 changes: 1 addition & 1 deletion src/views/SwapConfirm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<div class="media"><ClockIcon class="swap-info_clock" /><p class="text-muted media-body">If the swap doesn’t complete in 3 hours, you will be refunded in 6 hours at {{expiration}}</p></div>
</div>
<div class="button-group">
<button class="btn btn-light btn-outline-primary btn-lg" @click="$router.go(-1)">Cancel</button>
<button class="btn btn-light btn-outline-primary btn-lg" v-if="!loading" @click="$router.go(-1)">Cancel</button>
<button class="btn btn-primary btn-lg btn-block btn-icon" @click="send" :disabled="loading">
<SpinnerIcon class="btn-loading" v-if="loading" />
<template v-else><SwapIcon /> Initiate Swap</template>
Expand Down

0 comments on commit 13bf916

Please sign in to comment.