491 [FEAT] Allow disks to be hidden/archived
- Fix mock device type definition mismatch in the frontend. - Make DeviceModel archived field optional.
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
// maps to webapp/backend/pkg/models/device.go
|
// maps to webapp/backend/pkg/models/device.go
|
||||||
export interface DeviceModel {
|
export interface DeviceModel {
|
||||||
archived: boolean;
|
archived?: boolean;
|
||||||
wwn: string;
|
wwn: string;
|
||||||
device_name?: string;
|
device_name?: string;
|
||||||
device_uuid?: string;
|
device_uuid?: string;
|
||||||
|
|||||||
@@ -20,7 +20,8 @@ export const sda = {
|
|||||||
'device_type': '',
|
'device_type': '',
|
||||||
'label': '',
|
'label': '',
|
||||||
'host_id': '',
|
'host_id': '',
|
||||||
'device_status': 0
|
'device_status': 0,
|
||||||
|
'archived': false
|
||||||
},
|
},
|
||||||
'smart_results': [{
|
'smart_results': [{
|
||||||
'date': '2021-10-24T23:20:44Z',
|
'date': '2021-10-24T23:20:44Z',
|
||||||
|
|||||||
@@ -28,7 +28,8 @@ export const summary = {
|
|||||||
'device_type': '',
|
'device_type': '',
|
||||||
'label': '',
|
'label': '',
|
||||||
'host_id': '',
|
'host_id': '',
|
||||||
'device_status': 0
|
'device_status': 0,
|
||||||
|
'archived': false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
'0x5000cca252c859cc': {
|
'0x5000cca252c859cc': {
|
||||||
@@ -55,7 +56,8 @@ export const summary = {
|
|||||||
'device_type': '',
|
'device_type': '',
|
||||||
'label': '',
|
'label': '',
|
||||||
'host_id': '',
|
'host_id': '',
|
||||||
'device_status': 0
|
'device_status': 0,
|
||||||
|
'archived': false
|
||||||
},
|
},
|
||||||
'smart': {
|
'smart': {
|
||||||
'collector_date': '2020-08-21T22:27:02Z',
|
'collector_date': '2020-08-21T22:27:02Z',
|
||||||
@@ -91,7 +93,8 @@ export const summary = {
|
|||||||
'device_type': '',
|
'device_type': '',
|
||||||
'label': '',
|
'label': '',
|
||||||
'host_id': '',
|
'host_id': '',
|
||||||
'device_status': 0
|
'device_status': 0,
|
||||||
|
'archived': false
|
||||||
},
|
},
|
||||||
'smart': {
|
'smart': {
|
||||||
'collector_date': '2020-06-21T00:03:30Z',
|
'collector_date': '2020-06-21T00:03:30Z',
|
||||||
@@ -127,7 +130,8 @@ export const summary = {
|
|||||||
'device_type': '',
|
'device_type': '',
|
||||||
'label': '',
|
'label': '',
|
||||||
'host_id': '',
|
'host_id': '',
|
||||||
'device_status': 0
|
'device_status': 0,
|
||||||
|
'archived': false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
'0x5000cca264ec3183': {
|
'0x5000cca264ec3183': {
|
||||||
@@ -154,7 +158,8 @@ export const summary = {
|
|||||||
'device_type': '',
|
'device_type': '',
|
||||||
'label': '',
|
'label': '',
|
||||||
'host_id': 'custom host id',
|
'host_id': 'custom host id',
|
||||||
'device_status': 1
|
'device_status': 1,
|
||||||
|
'archived': false
|
||||||
},
|
},
|
||||||
'smart': {
|
'smart': {
|
||||||
'collector_date': '2020-09-13T16:29:23Z',
|
'collector_date': '2020-09-13T16:29:23Z',
|
||||||
@@ -574,7 +579,8 @@ export const summary = {
|
|||||||
'device_type': '',
|
'device_type': '',
|
||||||
'label': '',
|
'label': '',
|
||||||
'host_id': '',
|
'host_id': '',
|
||||||
'device_status': 0
|
'device_status': 0,
|
||||||
|
'archived': false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
'0x5002538e40a22954': {
|
'0x5002538e40a22954': {
|
||||||
@@ -601,7 +607,8 @@ export const summary = {
|
|||||||
'device_type': '',
|
'device_type': '',
|
||||||
'label': '',
|
'label': '',
|
||||||
'host_id': '',
|
'host_id': '',
|
||||||
'device_status': 0
|
'device_status': 0,
|
||||||
|
'archived': false
|
||||||
},
|
},
|
||||||
'smart': {
|
'smart': {
|
||||||
'collector_date': '2020-06-10T12:01:02Z',
|
'collector_date': '2020-06-10T12:01:02Z',
|
||||||
|
|||||||
Reference in New Issue
Block a user