Skip to content
Snippets Groups Projects
Commit 4fb6d49b authored by ddamiron's avatar ddamiron
Browse files

hotfix tabs behaviour in final logs report

parent e2bae39e
No related branches found
No related tags found
3 merge requests!10New updated datalog,!9add all datalog components and services into angular gui,!14Version 1.3.0
<div class="section" *ngIf="isNoError; else errorGraph">
<div class="graph-component">
<a class="button button-gl is-centered" (click)="replotGraph()">
Reload Chart
</a>
<div class="columns is-centered">
<div class="graph-div-canvas">
<canvas id="graphCanvas">{{ chart }}</canvas>
</div>
</div>
<div class="columns is-centered">
<a class="button button-gl is-centered" (click)="replotGraph()">
Recharger le graphique
</a>
</div>
</div>
</div>
<ng-template #errorGraph>
......
......@@ -7,7 +7,7 @@ figure {
figure img{
max-width: 9.3rem;
display: inline-block;
margin-top: 1.25rem;
margin-top: 20px;
}
.card-header-title {
......@@ -109,28 +109,29 @@ figure {
transition: width 0.3s;
width: 100%;
}
}
.full-width {
width: 100%;
}
h1 {
text-align: center
}
.full-width {
width: 100%;
}
.icon {
cursor: pointer;
&:hover {
.fa-plus {
color: lightblue;
}
.fa-trash {
color: #d5232a;
h1 {
text-align: center
}
.icon {
cursor: pointer;
&:hover {
.fa-plus {
color: lightblue;
}
.fa-trash {
color: #d5232a;
}
}
}
}
.hidden {
display: none;
.hidden {
display: none;
}
}
\ No newline at end of file
......@@ -74,7 +74,8 @@ export class LogsReportComponent implements OnInit {
}
tabsToggler(tabName) {
if (tabName === 'Graph') {
if (tabName === 'Graphique') {
console.log(this.isToggled);
this.isToggled = true;
this.tabs[1].isActive = false;
this.tabs[0].isActive = true;
......@@ -82,13 +83,15 @@ export class LogsReportComponent implements OnInit {
}
if (tabName === 'Infos') {
console.log(this.isToggled);
this.isToggled = false;
this.tabs[1].isActive = true;
this.tabs[0].isActive = false;
this.tabs[2].isActive = false;
}
if (tabName === 'Errors') {
if (tabName === 'Erreurs') {
console.log(this.isToggled);
this.isToggled = undefined;
this.tabs[2].isActive = true;
this.tabs[1].isActive = false;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment