fix: Description tooltip in Global Configurations

Due to a bug in getTooltip, the tooltips were never shown. This change
shows the tooltip when there is a description for the configuration option.
This commit is contained in:
Ralph Hopman
2024-11-28 18:31:20 +01:00
committed by Adam Saghy
parent a27bd723d8
commit 1aed445156
2 changed files with 1 additions and 8 deletions
@@ -14,7 +14,7 @@
<ng-container matColumnDef="name">
<th mat-header-cell *matHeaderCellDef mat-sort-header> {{'labels.inputs.name' | translate}} </th>
<td mat-cell *matCellDef="let configuration"> {{ configuration.name }}&nbsp;&nbsp;
<fa-icon icon="question-circle" matTooltip="{{ getTooltip(configuration.description) | translate }}" matTooltipPosition="right"></fa-icon>
<fa-icon *ngIf="configuration.description" icon="question-circle" matTooltip="{{ configuration.description | translate }}" matTooltipPosition="right"></fa-icon>
</td>
</ng-container>
@@ -149,11 +149,4 @@ export class GlobalConfigurationsTabComponent implements OnInit, AfterViewInit {
this.router.navigate(['/system']);
}
getTooltip(description: string): string {
if (description === undefined) {
return description;
}
return 'labels.text.No Description';
}
}