Skip to content
Snippets Groups Projects
Commit 4b2496f5 authored by Domonkos Gulyas's avatar Domonkos Gulyas
Browse files

Merge branch 'CE-2132_display-network-scope-on-host-table' into 'develop'

CE-2132: Display network scope in host table

See merge request !360
parents e656ebd8 8b07a586
No related branches found
No related tags found
2 merge requests!407CE-2141: 3.0.0,!360CE-2132: Display network scope in host table
Pipeline #160452 failed
...@@ -14,7 +14,8 @@ const columns = [ ...@@ -14,7 +14,8 @@ const columns = [
}, },
{ field: "hostName", headerName: "Host" }, { field: "hostName", headerName: "Host" },
{ field: "description", headerName: "Description" }, { field: "description", headerName: "Description" },
{ field: "network", headerName: "Network" } { field: "network", headerName: "Network" },
{ field: "scope", headerName: "Network scope" }
]; ];
export function rowDescription(description) { export function rowDescription(description) {
...@@ -46,6 +47,7 @@ export function createRow(hostContainer) { ...@@ -46,6 +47,7 @@ export function createRow(hostContainer) {
host: host, host: host,
description: rowDescription(host.description), description: rowDescription(host.description),
network: noWrapText(host.network), network: noWrapText(host.network),
scope: noWrapText(host.scope),
discrepancy: hostContainer.alertSeverity === "WARNING", discrepancy: hostContainer.alertSeverity === "WARNING",
inconsistentState: hostContainer.alertSeverity === "ERROR", inconsistentState: hostContainer.alertSeverity === "ERROR",
shortenLongData: true, shortenLongData: true,
......
...@@ -3,7 +3,7 @@ import { composeStories } from "@storybook/testing-react"; ...@@ -3,7 +3,7 @@ import { composeStories } from "@storybook/testing-react";
import * as stories from "../../stories/components/common/host/HostTable.stories"; import * as stories from "../../stories/components/common/host/HostTable.stories";
const { Populated } = composeStories(stories); const { Populated } = composeStories(stories);
const textColumns = ["host", "description", "network"]; const textColumns = ["host", "description", "network", "scope"];
const columns = ["status"].concat(textColumns); const columns = ["status"].concat(textColumns);
const firstRowData = [ const firstRowData = [
"Active", "Active",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment