Commit for target and total difficulty load options
This commit is contained in:
parent
f0eb187819
commit
2495f4250f
@ -532,6 +532,15 @@
|
|||||||
Difficultyreq('total', '', '', '3 months',''); selectedTarget = 5; TdifficultyRange = '3 months'
|
Difficultyreq('total', '', '', '3 months',''); selectedTarget = 5; TdifficultyRange = '3 months'
|
||||||
" id="5" #itemtarget5 [ngClass]="{ active: selectedTarget == itemtarget5.id, day3m_txt: true }">3
|
" id="5" #itemtarget5 [ngClass]="{ active: selectedTarget == itemtarget5.id, day3m_txt: true }">3
|
||||||
{{'home.MONTHS' | translate}}</a>
|
{{'home.MONTHS' | translate}}</a>
|
||||||
|
|
||||||
|
|
||||||
|
<a href="JavaScript:void(0);" (click)="
|
||||||
|
Difficultyreq('total', '', '', 'all',''); selectedTarget = 7; TdifficultyRange = ''
|
||||||
|
" id="7" #itemtarget7 [ngClass]="{ active: selectedTarget == itemtarget7.id, dayall_txt: true }">{{'home.All' | translate}}</a>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="explore_all text-right">
|
<div class="explore_all text-right">
|
||||||
|
@ -425,10 +425,16 @@ export class GraphListComponent implements OnInit {
|
|||||||
) {
|
) {
|
||||||
|
|
||||||
this.Type = type != '' ? type : this.Type == '' ? 'all' : this.Type;
|
this.Type = type != '' ? type : this.Type == '' ? 'all' : this.Type;
|
||||||
|
// loader enable while change tab
|
||||||
|
if(difftype == "total")
|
||||||
|
this.linearTotalGraphData = []
|
||||||
|
else if(difftype == "target")
|
||||||
|
this.linearGraphData = []
|
||||||
|
|
||||||
if(interval == "all") {
|
if(interval == "all") {
|
||||||
// this.Type=""
|
// this.Type=""
|
||||||
fromDate = "2019-09-29 00:00:00"
|
fromDate = "2019-09-03 00:00:00"
|
||||||
ToDate = "2019-11-20 23:29:59"
|
ToDate = moment(new Date()).format("YYYY-MM-DD 23:29:59")
|
||||||
}
|
}
|
||||||
|
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user