diff --git a/app/components/candidates/List.vue b/app/components/candidates/List.vue index 0ef94827..8c595d90 100644 --- a/app/components/candidates/List.vue +++ b/app/components/candidates/List.vue @@ -127,10 +127,10 @@ slot-scope="data">
- {{ data.item.latestSignedBlock || '' }} + {{ data.item.latestSignedBlock }}
@@ -181,40 +181,13 @@ export default { return { chainConfig: {}, fields: [ - { - key: 'rank', - label: 'Rank' - }, - { - key: 'address', - label: 'Address', - sortable: false - }, - { - key: 'name', - label: 'Name', - sortable: false - }, - { - key: 'capacity', - label: 'Capacity', - sortable: true - }, - { - key: 'latestSignedBlock', - label: 'Latest Signed Block', - sortable: true - }, - { - key: 'status', - label: 'Status', - sortable: false - }, - { - key: 'action', - label: '', - sortable: false - } + { key: 'rank', label: 'Rank' }, + { key: 'address', label: 'Address', sortable: false }, + { key: 'name', label: 'Name', sortable: false }, + { key: 'capacity', label: 'Capacity', sortable: true }, + { key: 'latestSignedBlock', label: 'Latest Signed Block', sortable: true }, + { key: 'status', label: 'Status', sortable: false }, + { key: 'action', label: '', sortable: false } ], sortBy: 'capacity', sortDesc: true, @@ -354,7 +327,7 @@ export default { isPenalty: candidate.isPenalty, name: candidate.name || 'Anonymous', cap: new BigNumber(candidate.capacity).div(10 ** 18).toNumber(), - latestSignedBlock: candidate.latestSignedBlock, + latestSignedBlock: candidate.latestSignedBlock || 0, rank: candidate.rank }) }) @@ -407,7 +380,7 @@ export default { isPenalty: candidate.isPenalty, name: candidate.name || 'Anonymous', cap: new BigNumber(candidate.capacity).div(10 ** 18).toNumber(), - latestSignedBlock: candidate.latestSignedBlock + latestSignedBlock: candidate.latestSignedBlock || 0 }) }) self.candidates = items @@ -445,7 +418,7 @@ export default { isPenalty: candidate.isPenalty, name: candidate.name || 'Anonymous', cap: new BigNumber(candidate.capacity).div(10 ** 18).toNumber(), - latestSignedBlock: '' // candidate.latestSignedBlock + latestSignedBlock: '---' // candidate.latestSignedBlock }) }) self.candidates = items @@ -482,7 +455,7 @@ export default { isPenalty: candidate.isPenalty, name: candidate.name || 'Anonymous', cap: new BigNumber(candidate.capacity).div(10 ** 18).toNumber(), - latestSignedBlock: candidate.latestSignedBlock + latestSignedBlock: candidate.latestSignedBlock || 0 }) }) self.candidates = items diff --git a/app/components/candidates/View.vue b/app/components/candidates/View.vue index 501187e5..ec0c0509 100644 --- a/app/components/candidates/View.vue +++ b/app/components/candidates/View.vue @@ -62,7 +62,9 @@

-
+

Latest Signed Block