Skip to content

Commit 976ec00

Browse files
committed
Minor fixes
1 parent 5cf5c35 commit 976ec00

File tree

2 files changed

+11
-8
lines changed

2 files changed

+11
-8
lines changed

src/components/GeoWidget.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<template>
22
<div class='bg-vdark inset-shadow'>
33
<q-banner dense inline-actions class="text-vdark bg-vgreen">
4-
This feature is currently disabled, the data is artificial.
4+
The map widget is currently disabled, the data is artificial.
55
</q-banner>
66
<div id='map'></div>
77
<div id='tooltip' class='hidden bg-vgrey'>

src/pages/Index.vue

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -106,27 +106,27 @@
106106
</q-item>
107107
<q-item>
108108
<q-item-section>
109-
<q-item-label>Uptime</q-item-label>
109+
<q-item-label disabled>Uptime</q-item-label>
110110
<q-item-label class="code text-vgreen" caption disabled>{{ identity.uptime }}</q-item-label>
111111
</q-item-section>
112112
</q-item>
113113
<q-item>
114114
<q-item-section>
115-
<q-item-label>VTX earned</q-item-label>
116-
<q-item-label class="code text-vgreen" caption disabled>{{ "0.0000 VTX" }}</q-item-label>
115+
<q-item-label disabled>VTX earned</q-item-label>
116+
<q-item-label class="code text-vgreen" caption>{{ "0.0000 VTX" }}</q-item-label>
117117
</q-item-section>
118118
<q-item-section avatar>
119119
<q-btn label="Retreive reward" outline color="vgreen" class="text-vgrey" @click="retreiveReward" v-if="identity.account_name"/>
120120
</q-item-section>
121121
</q-item>
122122
<q-item>
123123
<q-item-section>
124-
<q-badge v-if="identity.account_name && nodes.length > 0" :disabled="voting_list.length ? true : false" color="vgreen" class="text-vdark q-ma-xs pointer-cursor" @click="getVoteBackList('random')" > Vote back randomly
124+
<q-btn dense size="xs" v-if="identity.account_name && nodes.length > 0" :disabled="voting_list.length ? true : false" color="vgreen" class="text-vdark q-ma-xs pointer-cursor" @click="getVoteBackList('random')" > Vote back (random)
125125
<q-tooltip content-class="bg-vgreen text-vdark" content-style="font-size: 16px" :offset="[10, 10]">Click to vote for random 21 nodes that voted for you</q-tooltip>
126-
</q-badge>
127-
<q-badge v-if="identity.account_name && nodes.length > 0" :disabled="voting_list.length ? true : false" color="vgreen" class="text-vdark q-ma-xs pointer-cursor" @click="getVoteBackList('top')" > Vote back top
126+
</q-btn>
127+
<q-btn dense size="xs" v-if="identity.account_name && nodes.length > 0" :disabled="voting_list.length ? true : false" color="vgreen" class="text-vdark q-ma-xs pointer-cursor" @click="getVoteBackList('top')" > Vote back (top)
128128
<q-tooltip content-class="bg-vgreen text-vdark" content-style="font-size: 16px" :offset="[10, 10]">Click to vote for top 21 nodes that voted for you</q-tooltip>
129-
</q-badge>
129+
</q-btn>
130130
</q-item-section>
131131
<q-item-section>
132132
<q-item-label>Voted for me</q-item-label>
@@ -897,6 +897,9 @@ export default {
897897
setInterval(() => this.refresher(), 3000)
898898
} catch (error) {
899899
this.$userError(error, 'Vote action')
900+
if (error.message.includes('unable to complete by deadline')) {
901+
this.$userError('Try at a later time when EOSIO network is not as busy or get more CPU.', 'Vote action')
902+
}
900903
}
901904
},
902905
async retreiveReward () {

0 commit comments

Comments
 (0)