Skip to content
This repository was archived by the owner on Dec 6, 2022. It is now read-only.

Commit 50b67f7

Browse files
committed
timeago hover date
1 parent 6643172 commit 50b67f7

File tree

3 files changed

+17
-13
lines changed

3 files changed

+17
-13
lines changed

src/components/LastBlock.vue

+1
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@
7373
:auto-update="5"
7474
>
7575
</timeago>
76+
<q-tooltip>{{new Date(timestamp)}}</q-tooltip>
7677
</q-item-label>
7778
</q-item-section>
7879
</q-item>

src/components/LatestBlocks.vue

+15-13
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,8 @@
8585
:auto-update="5"
8686
>
8787
</timeago>
88+
<q-tooltip>{{new Date(props.row.timestamp)}}</q-tooltip>
89+
8890
</q-td>
8991

9092
<q-td
@@ -123,11 +125,11 @@ export default Vue.extend({
123125
name: 'latestBlocks',
124126
components: {
125127
'define-loading': defineLoading,
126-
'block-link': blockLink
128+
'block-link': blockLink,
127129
},
128130
props: {
129131
data: Array,
130-
loading: Boolean
132+
loading: Boolean,
131133
},
132134
data() {
133135
return {
@@ -137,55 +139,55 @@ export default Vue.extend({
137139
required: true,
138140
label: 'BlockHash',
139141
align: 'left',
140-
field: 'blockHash'
142+
field: 'blockHash',
141143
},
142144
{ name: 'blockSize', align: 'left', label: 'blockSize', field: 'blockSize' },
143145
{
144146
name: 'blockNumber',
145147
align: 'left',
146148
label: 'BlockNumber',
147-
field: 'blockNumber'
149+
field: 'blockNumber',
148150
},
149151
{
150152
name: 'deployCount',
151153
align: 'left',
152154
label: 'DeployCount',
153-
field: 'deployCount'
155+
field: 'deployCount',
154156
},
155157
{
156158
name: 'seqNum',
157159
align: 'left',
158160
label: 'SeqNum',
159-
field: 'seqNum'
161+
field: 'seqNum',
160162
},
161163
{
162164
name: 'timestamp',
163165
align: 'left',
164166
label: 'Age',
165-
field: 'timestamp'
167+
field: 'timestamp',
166168
},
167169
{
168170
name: 'sender',
169171
align: 'left',
170172
label: 'Sender',
171-
field: 'sender'
172-
}
173+
field: 'sender',
174+
},
173175
],
174176
pagination: {
175177
// sortBy: 'desc',
176178
// descending: false,
177179
page: 1,
178180
// this is not relying on the q-table pagination to get page
179-
rowsPerPage: 0
181+
rowsPerPage: 0,
180182
// rowsNumber: 10
181-
}
183+
},
182184
};
183185
},
184186
methods: {
185187
revUnit: revUnit,
186188
onRequest(page: number) {
187189
this.$emit('request', page);
188-
}
189-
}
190+
},
191+
},
190192
});
191193
</script>

src/components/LatestTransfer.vue

+1
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@
7171
:auto-update="5"
7272
>
7373
</timeago>
74+
<q-tooltip>{{new Date(props.row.timestamp)}}</q-tooltip>
7475
</q-td>
7576

7677
<q-td

0 commit comments

Comments
 (0)