Skip to content

Commit 25fbe5d

Browse files
Hot Fix chart
1 parent 213bdee commit 25fbe5d

File tree

3 files changed

+2
-5
lines changed

3 files changed

+2
-5
lines changed

src/app/elements/charts/testRunsResultsGraph/testRun.results.chart.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@
77
.result-switch-label {
88
position: absolute;
99
top: 0;
10-
left: -60;
10+
left: -75;
1111
}

src/app/elements/charts/testRunsResultsGraph/testRun.results.chart.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<div *ngIf="lineChartData.length > 0" style="display: block; padding: 0 10px 0 10px;">
22
<div class="result-switch">
3-
<div class="result-switch-label">{{switchLabel}}</div>
3+
<div class="result-switch-label">{{switchState ? switchLabels.resolution : switchLabels.result}}</div>
44
<ui-switch id="result-switch" size="small" [ngModel]="switchState" (change)="switch()"></ui-switch>
55
</div>
66
<canvas baseChart height="70" *ngIf="lineChartData.length > 0"

src/app/elements/charts/testRunsResultsGraph/testRun.results.chart.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import { SimpleRequester } from '../../../services/simple-requester';
33
import { TestResultService } from '../../../services/test-result.service';
44
import { FinalResult } from '../../../shared/models/final-result';
55
import { FinalResultService } from '../../../services/final_results.service';
6-
import { ActivatedRoute } from '@angular/router';
76
import { TestRunStat } from '../../../shared/models/testrunStats';
87
import { ResultResolution } from '../../../shared/models/result_resolution';
98
import { GlobalDataService } from '../../../services/globaldata.service';
@@ -22,7 +21,6 @@ export class TestRunsResultsTimelineComponent implements OnInit, OnChanges {
2221
result: 'Results',
2322
resolution: 'Resolutions'
2423
};
25-
switchLabel = this.switchLabels.result;
2624
projectId: number;
2725
listOfFinalResults: FinalResult[];
2826
listOfResolutions: ResultResolution[];
@@ -265,7 +263,6 @@ export class TestRunsResultsTimelineComponent implements OnInit, OnChanges {
265263

266264
switch() {
267265
this.switchState = !this.switchState;
268-
this.switchLabel = this.switchState ? this.switchLabels.result : this.switchLabels.resolution;
269266
this.fillData();
270267
}
271268
}

0 commit comments

Comments
 (0)