</span>
</ng-template>
+<ng-template #hostNameTpl
+ let-row="row">
+ <span [ngClass]="row">
+ {{ row.hostname }}
+ </span><br>
+ <span class="text-muted fst-italic"
+ *ngIf="row.addr">
+ ({{ row.addr }})
+ </span>
+</ng-template>
+
<ng-template #maintenanceConfirmTpl>
<div *ngFor="let msg of errorMessage; let last=last">
<ul *ngIf="!last || errorMessage.length === '1'">
const spans = fixture.debugElement.nativeElement.querySelectorAll(
'.datatable-body-cell-label span'
);
- expect(spans[0].textContent).toBe(hostname);
+ expect(spans[0].textContent.trim()).toBe(hostname);
});
it('should show the exact count of the repeating daemons', () => {
orchTmpl: TemplateRef<any>;
@ViewChild('flashTmpl', { static: true })
flashTmpl: TemplateRef<any>;
+ @ViewChild('hostNameTpl', { static: true })
+ hostNameTpl: TemplateRef<any>;
@Input()
hiddenColumns: string[] = [];
{
name: $localize`Hostname`,
prop: 'hostname',
- flexGrow: 1
+ flexGrow: 1,
+ cellTemplate: this.hostNameTpl
},
{
name: $localize`Service Instances`,