Skip to content

Commit 23f09f1

Browse files
authored
Merge pull request #825 from utmstack/bugfix/v10.5/7issue-in-report-creation
Bugfix/v10.5.7/issue in report creation
2 parents eb675f2 + a6e8f5b commit 23f09f1

File tree

5 files changed

+18
-4
lines changed

5 files changed

+18
-4
lines changed

CHANGELOG.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11

22
# UTMStack 10.5.7 Release Notes
33
## Bugfix
4-
- Fixed the dashboard overview save to pdf operation.
4+
- Fixed the dashboard overview save to pdf operation.
5+
# UTMStack 10.5.8 Release Notes
6+
## Bugfix
7+
- Fixed table display issue in dashboard PDF export by adjusting height for print layout.

frontend/src/app/graphic-builder/shared/components/viewer/chart-view/chart-view.component.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,12 @@ export class ChartViewComponent implements OnInit {
6666
});
6767
}
6868
});
69-
this.runVisualization();
7069
this.defaultTime = resolveDefaultVisualizationTime(this.visualization);
7170

71+
if (!this.defaultTime) {
72+
this.runVisualization();
73+
}
74+
7275
window.addEventListener('resize', (event) => {
7376
this.resizeChart();
7477
});
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
@media print {
2+
.h-100 {
3+
height: auto !important;
4+
}
5+
}

frontend/src/app/graphic-builder/shared/components/viewer/table-view/table-view.component.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,6 @@ export class TableViewComponent implements OnInit, AfterViewInit, OnChanges {
7979
}
8080

8181
ngOnInit() {
82-
this.runVisualization();
8382
this.defaultTime = resolveDefaultVisualizationTime(this.visualization);
8483
this.runVisualizationBehavior.$run.subscribe(id => {
8584
if (id && this.chartId === id) {
@@ -95,6 +94,10 @@ export class TableViewComponent implements OnInit, AfterViewInit, OnChanges {
9594
});
9695
}
9796
});
97+
98+
if (!this.defaultTime) {
99+
this.runVisualization();
100+
}
98101
}
99102

100103
ngOnChanges(changes: SimpleChanges) {

version.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
version: 10.5.7
1+
version: 10.5.8

0 commit comments

Comments
 (0)