Create indexing sticky notification that show indexing progress in all mining dashboard related pages

This commit is contained in:
nymkappa
2022-05-02 17:28:58 +09:00
parent 11cdbb3118
commit 802e10e0a9
19 changed files with 95 additions and 20 deletions

View File

@@ -1,3 +1,5 @@
<app-loading-indicator [name]="'block-indexing'"></app-loading-indicator>
<div [class]="widget === false ? 'full-container' : ''">
<div *ngIf="widget">

View File

@@ -136,16 +136,12 @@ export class HashrateChartComponent implements OnInit {
prepareChartOptions(data) {
let title: object;
if (data.hashrates.length === 0) {
const lastBlock = new Date(data.timestamp * 1000);
const dd = String(lastBlock.getDate()).padStart(2, '0');
const mm = String(lastBlock.getMonth() + 1).padStart(2, '0'); // January is 0!
const yyyy = lastBlock.getFullYear();
title = {
textStyle: {
color: 'grey',
fontSize: 15
},
text: `Indexing in progess - ${yyyy}-${mm}-${dd}`,
text: `Indexing in progess`,
left: 'center',
top: 'center'
};