1 <ng-container *ngIf="!loading; else isLoading">
2 <ng-container *ngIf="incompatible; else isCompatible">
3 <cd-alert-panel type="warning"
4 i18n>The data received has the JSON format version 2.x and is currently incompatible with the dashboard.</cd-alert-panel>
6 <ng-template #isCompatible>
7 <tabset *ngFor="let device of data | keyvalue">
8 <tab [heading]="device.value.device + ' (' + device.value.identifier + ')'">
9 <ng-container *ngIf="device.value.error; else noError">
10 <cd-alert-panel type="warning">{{ device.value.userMessage }}</cd-alert-panel>
12 <ng-template #noError>
13 <ng-container *ngIf="device.value.smart.data.self_test.status.passed; else selfTestFailed">
18 title="SMART overall-health self-assessment test result">
19 {{ device.value.smart.data.self_test.status.string }}
22 <ng-template #selfTestFailed>
27 title="SMART overall-health self-assessment test result">
28 {{ device.value.smart.data.self_test.status.string }}
33 heading="Device Information">
34 <cd-table-key-value [renderObjects]="true"
35 [data]="device.value.info"></cd-table-key-value>
40 <cd-table [data]="device.value.smart.attributes.table"
41 updateSelectionOnRefresh="never"
42 [columns]="columns"></cd-table>
50 <ng-template #isLoading>
51 <cd-loading-panel i18n>S.M.A.R.T data is loading.</cd-loading-panel>