-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
7 changed files
with
184 additions
and
18 deletions.
There are no files selected for viewing
56 changes: 56 additions & 0 deletions
56
src/components/WalletHistory/CancellationFailedModal/CancellationFailedModal.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
.cancel-transaction-modal { | ||
.close-btn { | ||
position: absolute; | ||
right: 0; | ||
top: 0; | ||
} | ||
.card-header { | ||
background: #ffffff; | ||
border-radius: 6px; | ||
border: 1px solid #f5f5f5; | ||
box-sizing: border-box; | ||
box-shadow: 0px 14px 28px rgba(92, 108, 127, 0.06); | ||
|
||
.close-btn { | ||
position: absolute; | ||
top: 5px; | ||
right: 5px; | ||
color: var(--v-text_1-base); | ||
} | ||
} | ||
.transaction-details { | ||
width: 100%; | ||
} | ||
.amount-container { | ||
width: 120px; | ||
text-align: right; | ||
} | ||
|
||
.info { | ||
font-size: 10px; | ||
} | ||
|
||
.is-confirmed { | ||
.v-icon__component { | ||
color: var(--v-text_3-base); | ||
caret-color: var(--v-text_3-base); | ||
} | ||
} | ||
|
||
.text-caption { | ||
line-height: 1em; | ||
} | ||
|
||
.is-confirmed-label { | ||
cursor: pointer; | ||
margin-top: 2px; | ||
} | ||
|
||
&.theme--dark { | ||
.card-header { | ||
border: 0; | ||
background: #2f3136; | ||
box-shadow: 0px 14px 28px rgba(0, 0, 0, 0.16); | ||
} | ||
} | ||
} |
82 changes: 82 additions & 0 deletions
82
src/components/WalletHistory/CancellationFailedModal/CancellationFailedModal.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
<template> | ||
<v-dialog :value="cancelDialog" persistent width="275"> | ||
<v-card class="cancel-transaction-modal"> | ||
<v-card-text class="pa-0"> | ||
<div class="card-header text-center xs12 py-6 px-6"> | ||
<div class="text-body2 text_1--text font-weight-bold">{{ t('walletActivity.cancelModalTitle') }}</div> | ||
<v-btn class="close-btn" icon aria-label="Close cancel status" title="Close cancel status" @click="close"> | ||
<v-icon>$vuetify.icons.close</v-icon> | ||
</v-btn> | ||
</div> | ||
<div class="px-4 pt-5 pb-8"> | ||
<div class="text-caption text-center text_1--text font-weight-bold mb-7"> | ||
{{ t('walletActivity.cancelModalDesc') }} | ||
<span class="error--text">{{ t('walletActivity.cancelModalUnsuccessful') }}</span> | ||
</div> | ||
<div class="d-flex transaction-details pb-10"> | ||
<TransactionImage :is-cancel="true" :transaction="transaction" /> | ||
<div class="ml-auto amount-container"> | ||
<div class="caption text_1--text font-weight-medium"> | ||
<span | ||
v-if=" | ||
transaction.type !== CONTRACT_TYPE_ERC721 && | ||
transaction.type !== CONTRACT_TYPE_ERC1155 && | ||
transaction.action === ACTIVITY_ACTION_SEND | ||
" | ||
class="error--text" | ||
> | ||
- | ||
</span> | ||
{{ transaction.totalAmountString }} | ||
</div> | ||
<div class="info text_2--text font-weight-light">{{ transaction.currencyAmountString }}</div> | ||
</div> | ||
</div> | ||
<div class="ma-2 text-caption text-center">{{ t('walletActivity.cancelModalNote') }}</div> | ||
</div> | ||
</v-card-text> | ||
<v-card-actions class="pb-4"> | ||
<v-btn block text color="text_2" @click="close">{{ t('walletActivity.cancelModalClose') }}</v-btn> | ||
</v-card-actions> | ||
</v-card> | ||
</v-dialog> | ||
</template> | ||
|
||
<script> | ||
import { ACTIVITY_ACTION_SEND, CONTRACT_TYPE_ERC721, CONTRACT_TYPE_ERC1155 } from '../../../utils/enums' | ||
import TransactionImage from '../TransactionImage' | ||
export default { | ||
components: { | ||
TransactionImage, | ||
}, | ||
props: { | ||
cancelDialog: { | ||
type: Boolean, | ||
default: false, | ||
}, | ||
transaction: { | ||
type: Object, | ||
default() { | ||
return {} | ||
}, | ||
}, | ||
}, | ||
data() { | ||
return { | ||
ACTIVITY_ACTION_SEND, | ||
CONTRACT_TYPE_ERC721, | ||
CONTRACT_TYPE_ERC1155, | ||
} | ||
}, | ||
methods: { | ||
close() { | ||
this.$emit('close') | ||
}, | ||
}, | ||
} | ||
</script> | ||
|
||
<style lang="scss" scoped> | ||
@import 'CancellationFailedModal.scss'; | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export { default } from './CancellationFailedModal.vue' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters