Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,14 @@
<tr *matHeaderRowDef="displayedColumns(); sticky: true" mat-header-row></tr>

<tr class="mat-row" *matNoDataRow>
<td class="mat-cell" [attr.colspan]="displayedColumns().length">
<td
class="mat-cell empty-data-cell"
[attr.colspan]="displayedColumns().length">
<div class="callout-container">
<app-callout [type]="CalloutType.Info">
CA certificates must be uploaded to complete TLS testing
</app-callout>
</div>
<div class="results-content-filter-empty">
<ng-container
*ngTemplateOutlet="
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,3 +96,28 @@
.certificates-content-empty {
height: calc(100vh - 344px);
}

.empty-data-cell {
position: relative;
}

.callout-container {
display: flex;
position: absolute;
top: 0;
width: 100%;

::ng-deep .callout-container {
margin: 6px 0;
padding: 14px 16px;
}

::ng-deep .callout-context {
font-family: variables.$font-text;
letter-spacing: 0;
}
}

.results-content-filter-empty {
margin-top: 60px;
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ import { MatTableDataSource, MatTableModule } from '@angular/material/table';
import { MatIconModule } from '@angular/material/icon';
import { MatButtonModule } from '@angular/material/button';
import { CommonModule } from '@angular/common';
import { CalloutType } from '../../../../model/callout-type';
import { CalloutComponent } from '../../../../components/callout/callout.component';
import { EmptyMessageComponent } from '../../../../components/empty-message/empty-message.component';

@Component({
Expand All @@ -13,13 +15,15 @@ import { EmptyMessageComponent } from '../../../../components/empty-message/empt
MatTableModule,
MatButtonModule,
CommonModule,
CalloutComponent,
EmptyMessageComponent,
],
templateUrl: './certificates-table.component.html',
styleUrl: './certificates-table.component.scss',
})
export class CertificatesTableComponent {
dataSource = input.required<MatTableDataSource<Certificate>>();
readonly CalloutType = CalloutType;
selectedCertificate = input<string>();
dataLoaded = input<boolean>(false);
displayedColumns = input<string[]>([]);
Expand Down
Loading