diff --git a/src/components/host/HostTable.js b/src/components/host/HostTable.js index df92a8c3674dc90c8efa78227a892e723ababe6f..b2b4254c56c115b52664f60c0dfc1d0ace95ab05 100644 --- a/src/components/host/HostTable.js +++ b/src/components/host/HostTable.js @@ -14,7 +14,8 @@ const columns = [ }, { field: "hostName", headerName: "Host" }, { field: "description", headerName: "Description" }, - { field: "network", headerName: "Network" } + { field: "network", headerName: "Network" }, + { field: "scope", headerName: "Network scope" } ]; export function rowDescription(description) { @@ -46,6 +47,7 @@ export function createRow(hostContainer) { host: host, description: rowDescription(host.description), network: noWrapText(host.network), + scope: noWrapText(host.scope), discrepancy: hostContainer.alertSeverity === "WARNING", inconsistentState: hostContainer.alertSeverity === "ERROR", shortenLongData: true, diff --git a/src/components/host/HostTable.spec.js b/src/components/host/HostTable.spec.js index 01b7dd120d804e2a3e1bddd50c973663df40c959..92e2e74317de4e2087063e391c6df3106d263a7a 100644 --- a/src/components/host/HostTable.spec.js +++ b/src/components/host/HostTable.spec.js @@ -3,7 +3,7 @@ import { composeStories } from "@storybook/testing-react"; import * as stories from "../../stories/components/common/host/HostTable.stories"; const { Populated } = composeStories(stories); -const textColumns = ["host", "description", "network"]; +const textColumns = ["host", "description", "network", "scope"]; const columns = ["status"].concat(textColumns); const firstRowData = [ "Active",