-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor monitoring stats layout and initialization (#415)
Replaced modal-based layout with a card-based layout in monitoring-stats.component.html to improve UI consistency. Added OnInit interface to MonitoringStatsComponent for better chart initialization. Removed redundant component placements and adjusted CSS styles for better spacing.
- Loading branch information
Showing
4 changed files
with
40 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,3 +11,8 @@ | |
.monitoring-data:hover { | ||
color: #105196 | ||
} | ||
|
||
|
||
.card { | ||
margin-top: 20px; | ||
} |
31 changes: 14 additions & 17 deletions
31
src/app/item-detail/monitoring-stats/monitoring-stats.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,16 @@ | ||
<ng-template #content let-modal> | ||
<div class="modal-header" ngbAutofocus> | ||
<h5 class="modal-title" id="modal-basic-title">Monitoring stats</h5> | ||
<button type="button" style="outline: none;" class="btn-close" aria-label="" (click)="modal.dismiss('Cross click')"> | ||
|
||
</button> | ||
</div> | ||
<div class="modal-body"> | ||
<div *ngIf="monitoringChartOptions"> | ||
<highcharts-chart [Highcharts]="Highcharts" [options]="monitoringChartOptions" [callbackFunction]="chartCallback" [(update)]="updateFlag" | ||
[constructorType]="chartConstructor" style="width: auto; height: 400px; display: block;"></highcharts-chart> | ||
<div class="row charts"> | ||
<div class="col tab-charts" *ngIf="data.length > 0"> | ||
<div class="card overview-chart-card card-shadow"> | ||
<h6 class="card-header bg-transparent">Monitoring</h6> | ||
<div class="card-body"> | ||
<div class="chart"> | ||
<highcharts-chart [Highcharts]="Highcharts" [options]="monitoringChartOptions" | ||
[callbackFunction]="chartCallback" | ||
[(update)]="updateFlag" | ||
[constructorType]="chartConstructor" | ||
style="width: auto; height: 400px; display: block;"></highcharts-chart> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</ng-template> | ||
|
||
|
||
|
||
|
||
<a class="monitoring-data" (click)="open(content)"><i class="fas fa-heartbeat"></i></a> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters