Skip to content

Commit

Permalink
Clean up PR build
Browse files Browse the repository at this point in the history
  • Loading branch information
gamalielhere committed Oct 8, 2020
1 parent abb71d2 commit 1c572ed
Show file tree
Hide file tree
Showing 8 changed files with 59 additions and 29 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<h3>
{{ $t('unstoppable.transfer-pending') }}
</h3>
<h5 v-for="domain in domains" class="middle-copy">
<h5 v-for="domain in domains" :key="domain.name" class="middle-copy">
<b>{{ domain.name }}</b>
{{
domain.status !== 'MINED'
Expand Down Expand Up @@ -75,20 +75,6 @@ export default {
this.$router.push('/interface/dapps/unstoppable');
}
},
methods: {
etherscanLink(txHash) {
return 'https://etherscan.io/tx/' + txHash;
},
translateStatus(status) {
if (status === 'MINED') {
return 'unstoppable.confirmed';
}
if (status === 'PENDING') {
return 'unstoppable.pending';
}
return 'unstoppable.failed';
}
},
mounted() {
this.interval = setInterval(() => {
fetch(
Expand Down Expand Up @@ -134,6 +120,20 @@ export default {
if (this.interval) {
clearInterval(this.interval);
}
},
methods: {
etherscanLink(txHash) {
return 'https://etherscan.io/tx/' + txHash;
},
translateStatus(status) {
if (status === 'MINED') {
return 'unstoppable.confirmed';
}
if (status === 'PENDING') {
return 'unstoppable.pending';
}
return 'unstoppable.failed';
}
}
};
</script>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,11 @@
</h3>
<h5 class="middle-copy">
{{ $t('unstoppable.following-been-claimed') }}:
<h4 v-for="domain of domainsClaimed" class="domain-container">
<h4
v-for="domain of domainsClaimed"
:key="`${domain.label}.${domain.extension}`"
class="domain-container"
>
{{ domain.label + '.' + domain.extension }}
</h4>
</h5>
Expand Down Expand Up @@ -38,7 +42,9 @@ export default {
props: {
domainsClaimed: {
type: Array,
default: ''
default: () => {
return [];
}
},
account: {
type: Object,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@
<div class="confirm-container">
<div class="domain-header">
<div class="items-container">
<h4 v-for="cartItem of cart">
<h4
v-for="cartItem of cart"
:key="`${cartItem.label}.${cartItem.extension}`"
>
{{ cartItem.label + '.' + cartItem.extension }} - ${{
cartItem.price
}}
Expand Down Expand Up @@ -54,7 +57,9 @@ export default {
props: {
cart: {
type: Array,
default: []
default: () => {
return [];
}
},
account: {
type: Object,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@
<div class="crypto-container">
<div class="domain-header">
<div class="items-container">
<h4 v-for="cartItem of cart">
<h4
v-for="cartItem of cart"
:key="`${cartItem.label}.${cartItem.extension}`"
>
{{ cartItem.label + '.' + cartItem.extension }} - ${{
cartItem.price
}}
Expand Down Expand Up @@ -166,7 +169,9 @@ export default {
props: {
cart: {
type: Array,
default: []
default: () => {
return [];
}
},
email: {
type: String,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,11 @@
<span class="bold">{{ $t('unstoppable.cart') }}:</span>
{{ cart.length }} {{ $t('unstoppable.items') }}
</div>
<div v-for="cartItem of cart" class="cart-items-container">
<div
v-for="cartItem of cart"
:key="`${cartItem.label}.${cartItem.extension}`"
class="cart-items-container"
>
<div class="cart-item-row">
<span
>{{ cartItem.label }}.{{ cartItem.extension }} - ${{
Expand Down Expand Up @@ -173,7 +177,9 @@ export default {
},
searchResults: {
type: Array,
default: []
default: () => {
return [];
}
},
loading: {
type: Boolean,
Expand All @@ -189,7 +195,9 @@ export default {
},
cart: {
type: Array,
default: []
default: () => {
return [];
}
},
searchErr: {
type: Boolean,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@
<div class="stripe-container">
<div class="domain-header">
<div class="items-container">
<h4 v-for="cartItem of cart">
<h4
v-for="cartItem of cart"
:key="cartItem.label + '.' + cartItem.extension"
>
{{ cartItem.label + '.' + cartItem.extension }} - ${{
cartItem.price
}}
Expand Down Expand Up @@ -85,7 +88,9 @@ export default {
props: {
cart: {
type: Array,
default: []
default: () => {
return [];
}
},
setTokenId: { type: Function, default: function () {} }
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@
<a
ref="downloadLink"
:href="downloadFile"
:download="walletName"
:download="downloadName !== '' ? downloadName : walletName"
rel="noopener noreferrer"
></a>
</div>
Expand Down Expand Up @@ -473,7 +473,8 @@ export default {
showPaths: false,
accounts: [],
currentIndex: 0,
downloadFile: ''
downloadFile: '',
downloadName: ''
};
},
computed: {
Expand Down Expand Up @@ -937,6 +938,7 @@ export default {
const blob = createBlob(e.data.walletJson, 'mime');
this.downloadFile = blob;
this.file = e.data.walletJson;
this.downloadName = e.data.name;
this.backupWallet();
ExtensionHelpers.addWalletToStore(
`0x${e.data.walletJson.address}`,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,6 @@ a {
max-height: 0;
}


.notification-menu-container {
margin: 0 30px;
display: flex;
Expand Down

1 comment on commit 1c572ed

@mew-bot
Copy link
Collaborator

@mew-bot mew-bot commented on 1c572ed Oct 8, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.