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:
+1
-1
@@ -14,7 +14,7 @@
|
|||||||
<ng-container matColumnDef="name">
|
<ng-container matColumnDef="name">
|
||||||
<th mat-header-cell *matHeaderCellDef mat-sort-header> {{'labels.inputs.name' | translate}} </th>
|
<th mat-header-cell *matHeaderCellDef mat-sort-header> {{'labels.inputs.name' | translate}} </th>
|
||||||
<td mat-cell *matCellDef="let configuration"> {{ configuration.name }}
|
<td mat-cell *matCellDef="let configuration"> {{ configuration.name }}
|
||||||
<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>
|
</td>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
|
|
||||||
|
|||||||
-7
@@ -149,11 +149,4 @@ export class GlobalConfigurationsTabComponent implements OnInit, AfterViewInit {
|
|||||||
this.router.navigate(['/system']);
|
this.router.navigate(['/system']);
|
||||||
}
|
}
|
||||||
|
|
||||||
getTooltip(description: string): string {
|
|
||||||
if (description === undefined) {
|
|
||||||
return description;
|
|
||||||
}
|
|
||||||
return 'labels.text.No Description';
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user