|
106 | 106 | </q-item>
|
107 | 107 | <q-item>
|
108 | 108 | <q-item-section>
|
109 |
| - <q-item-label>Uptime</q-item-label> |
| 109 | + <q-item-label disabled>Uptime</q-item-label> |
110 | 110 | <q-item-label class="code text-vgreen" caption disabled>{{ identity.uptime }}</q-item-label>
|
111 | 111 | </q-item-section>
|
112 | 112 | </q-item>
|
113 | 113 | <q-item>
|
114 | 114 | <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> |
117 | 117 | </q-item-section>
|
118 | 118 | <q-item-section avatar>
|
119 | 119 | <q-btn label="Retreive reward" outline color="vgreen" class="text-vgrey" @click="retreiveReward" v-if="identity.account_name"/>
|
120 | 120 | </q-item-section>
|
121 | 121 | </q-item>
|
122 | 122 | <q-item>
|
123 | 123 | <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) |
125 | 125 | <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) |
128 | 128 | <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> |
130 | 130 | </q-item-section>
|
131 | 131 | <q-item-section>
|
132 | 132 | <q-item-label>Voted for me</q-item-label>
|
@@ -897,6 +897,9 @@ export default {
|
897 | 897 | setInterval(() => this.refresher(), 3000)
|
898 | 898 | } catch (error) {
|
899 | 899 | 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 | + } |
900 | 903 | }
|
901 | 904 | },
|
902 | 905 | async retreiveReward () {
|
|
0 commit comments