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 d10434af63
commit 3d29ce93d2
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="container-xl">
<!-- Pool overview -->

View File

@@ -111,7 +111,7 @@ export class PoolComponent implements OnInit {
color: 'grey',
fontSize: 15
},
text: `No data`,
text: `Indexing in progress`,
left: 'center',
top: 'center'
};
@@ -164,14 +164,14 @@ export class PoolComponent implements OnInit {
`;
}.bind(this)
},
xAxis: {
xAxis: data.length === 0 ? undefined : {
type: 'time',
splitNumber: (this.isMobile()) ? 5 : 10,
axisLabel: {
hideOverlap: true,
}
},
yAxis: [
yAxis: data.length === 0 ? undefined : [
{
min: (value) => {
return value.min * 0.9;
@@ -190,7 +190,7 @@ export class PoolComponent implements OnInit {
}
},
],
series: [
series: data.length === 0 ? undefined : [
{
zlevel: 0,
name: 'Hashrate',