Check all button in target difficulty graph
This commit is contained in:
parent
55b4ff6a01
commit
b07c52b5a7
@ -61,6 +61,7 @@
|
||||
"TRANSACTIONS_VS_DATE" : "Transaktionen gegen Datum",
|
||||
"DAYS" : "Tage",
|
||||
"MONTHS" : "Monate",
|
||||
"All": "alle",
|
||||
"WEEK" : "Woche",
|
||||
"SEARCH_TEXT" : "Suche nach Hash oder Blockhöhe oder Ausgabe-Commit-ID",
|
||||
"BLOCK_REWARD" : "Block Belohnung",
|
||||
|
@ -61,6 +61,7 @@
|
||||
"TRANSACTIONS_VS_DATE" : "Transactions by Date",
|
||||
"DAYS" : "days",
|
||||
"MONTHS" : "months",
|
||||
"All" : "all",
|
||||
"WEEK" : "week",
|
||||
"SEARCH_TEXT" : "Search by hash, or block height or output commit ID",
|
||||
"BLOCK_REWARD" : "Block Reward",
|
||||
|
@ -61,6 +61,13 @@
|
||||
<a href="JavaScript:void(0);" (click)="
|
||||
Difficultyreq('target', '', '', '3 months',''); selectedItem = 5; difficultyRange = '3 months'
|
||||
" id="5" #item5 [ngClass]="{ active: selectedItem == item5.id, day3m_txt: true }">3 {{'home.MONTHS' | translate}}</a>
|
||||
|
||||
<a href="JavaScript:void(0);" (click)="
|
||||
Difficultyreq('target', '', '', 'all',''); selectedItem = 7; difficultyRange = ''
|
||||
" id="7" #item7 [ngClass]="{ active: selectedItem == item7.id, day3m_txt: true }">all {{'home.All' | translate}}</a>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class="explore_all text-right">
|
||||
@ -391,6 +398,14 @@
|
||||
<a href="JavaScript:void(0);" (click)="
|
||||
stackchartreq('', '', '3 months'); selectedItem10 = 5
|
||||
" id="5" #item5 [ngClass]="{ active: selectedItem10 == item5.id, day3m_txt: true }">3 {{'home.MONTHS' | translate}}</a>
|
||||
|
||||
<!--
|
||||
<a href="JavaScript:void(0);" (click)="
|
||||
stackchartreq('', '', 'all'); selectedItem = 7;
|
||||
" id="7" #item7 [ngClass]="{ active: selectedItem == item7.id, day3m_txt: true }">all {{'home.All' | translate}}</a> -->
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
<div class="explore_all text-right">
|
||||
<a routerLink="/chart/blocks-by-algorithm"><span class="text-uppercase d-block">{{'home.EXPLORE_IT' | translate}} <i
|
||||
|
@ -157,9 +157,18 @@ export class GraphListComponent implements OnInit {
|
||||
) {
|
||||
return new Promise((resolve, reject) => {
|
||||
let params = new HttpParams();
|
||||
|
||||
if(interval == "all") {
|
||||
// this.Type=""
|
||||
fromDate = "2019-09-29 06:00:00"
|
||||
ToDate = "2019-11-20 20:29:59"
|
||||
}
|
||||
|
||||
|
||||
|
||||
params = params.append('FromDate', fromDate);
|
||||
params = params.append('ToDate', ToDate);
|
||||
params = params.append('Interval', interval);
|
||||
params = params.append('Interval', (interval == "all")?"":interval);
|
||||
this.chartService
|
||||
.apiGetRequest(params, '/blockchain_block/stackblock')
|
||||
.subscribe(
|
||||
@ -414,12 +423,19 @@ export class GraphListComponent implements OnInit {
|
||||
interval = '',
|
||||
type = ''
|
||||
) {
|
||||
|
||||
this.Type = type != '' ? type : this.Type == '' ? 'all' : this.Type;
|
||||
if(interval == "all") {
|
||||
// this.Type=""
|
||||
fromDate = "2019-09-29 00:00:00"
|
||||
ToDate = "2019-11-20 23:29:59"
|
||||
}
|
||||
|
||||
return new Promise((resolve, reject) => {
|
||||
let params = new HttpParams();
|
||||
params = params.append('FromDate', fromDate);
|
||||
params = params.append('ToDate', ToDate);
|
||||
params = params.append('Interval', interval);
|
||||
params = params.append('Interval', (interval == "all")?"":interval);
|
||||
params = params.append('Type', this.Type);
|
||||
params = params.append('Difftype', difftype);
|
||||
this.chartService
|
||||
|
Loading…
Reference in New Issue
Block a user