{
"name": "Byone",
"description": "Bytom Chrome Extension Wallet",
- "version": "3.0.6",
+ "version": "3.0.7",
"author": "zhiting.fly@8btc.com",
"license": "MIT",
"private": true,
}
},
delayTx:{
- title:'Scheduled Transactions',
+ title:'Scheduled Tx',
scheduledTransfer:'Scheduled Tx',
scheduledReceive:'Scheduled Tx',
locked: 'Locked',
manifest_version: 2,
name: 'Byone',
description: 'Bytom Wallet Chrome extension.',
- version: '3.0.6',
+ version: '3.0.7',
author: 'Bytom frontend, zhitinglin',
web_accessible_resources: ['js/inject.js'],
browser_action: {
return bytom.transaction.list(guid, filter, null, start, limit);
};
-transaction.listDelayTransaction = function(address, start, limit) {
-
- let network = bytom.networks()
+transaction.listDelayTransaction = function(address, start, limit, network) {
if(!network){
network = 'mainnet'
- }else{
- network = network.split('vapor')[0]
}
let baseURL = networks[network]
</h1>
</section>
- <section class="transactions">
+ <section class="transactions" v-if="currentBlockHeight !== 0">
<ul class="list">
<li class="list-item" v-for="(transaction, index) in transactions" :key="index" >
<a :href="blockmeta(transaction.lockedTxHash)" target="_blank">
refreshTransactions: function (start, limit) {
return new Promise((resolve, reject) => {
- transaction.listDelayTransaction(this.address, start, limit).then(transactions => {
+ transaction.listDelayTransaction(this.address, start, limit, this.net).then(transactions => {
if (transactions == null) {
return;
}
Actions.SET_LIST_VOTE
])
},
- mounted() {
+ async mounted() {
if(this.language === 'zh' ||this.language === 'cn'){
moment.locale('zh-cn');
}
else{
moment.locale('en');
}
- query.blockStatus().then(resp => {
- if(resp){
- this.currentBlockHeight = resp.blockHeight;
- }
- })
+ const resp = await query.blockStatus()
+ this.currentBlockHeight = resp.blockHeight;
},
};
</script>
}
}
-
+.transaction-title{
+ position:relative;
+}
.transaction-title h3 {
}
.delay-btn{
position: absolute;
- background: rgba(255, 255, 255, 0.05);
+ background: #F5F5F5;
border-radius: 16px 0px 0px 16px;
- right: 0;
- color: white;
+ right: -20px;
+ color: rgba(0, 0, 0, 0.88);
font-size: 12px;
padding: 4px 10px;
- top: 20px;
+ top: 8px;
}
.icon_SBell{
font-size: 16px;
<div>{{ $t('main.crossChain') }}</div>
</a>
</div>
- <a class="delay-btn" @click="delayOpen"><i class="iconfont icon_SBell"></i>{{ $t('delayTx.title') }}</a>
</div>
</section>
<section v-if="address!=undefined" class="transaction-title">
- <h3 class="color-black">{{ $t('main.asset') }}</h3>
+ <h3 class="color-black">{{ $t('main.asset') }}</h3>
+ <a class="delay-btn" @click="delayOpen"><i class="iconfont icon_SBell"></i>{{ $t('delayTx.title') }}</a>
</section>
<section class="assets">
<div v-if=" balances && balances.length > 0">