Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure dashboard components that can display as Table ensure it is a registered component first. Fixes #259. #260

Merged
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
2 changes: 2 additions & 0 deletions ui/dashboard/src/components/dashboards/Card/index.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Ensure Table is loaded & registered first
import "@powerpipe/components/dashboards/Table";
import DashboardIcon from "../common/DashboardIcon";
import has from "lodash/has";
import IntegerDisplay from "@powerpipe/components/IntegerDisplay";
Expand Down
2 changes: 2 additions & 0 deletions ui/dashboard/src/components/dashboards/Image/index.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Ensure Table is loaded & registered first
import "@powerpipe/components/dashboards/Table";
import get from "lodash/get";
import Img from "react-cool-img";
import {
Expand Down
2 changes: 2 additions & 0 deletions ui/dashboard/src/components/dashboards/charts/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Ensure Table is loaded & registered first
import "@powerpipe/components/dashboards/Table";
import { getComponent } from "../index";
import { IChart } from "./types";
const Table = getComponent("table");
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Ensure Table is loaded & registered first
import "@powerpipe/components/dashboards/Table";
import Card, { CardProps } from "@powerpipe/components/dashboards/Card";
import CheckGrouping from "../CheckGrouping";
import CustomizeViewSummary from "../CustomizeViewSummary";
Expand Down
2 changes: 2 additions & 0 deletions ui/dashboard/src/components/dashboards/flows/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Ensure Table is loaded & registered first
import "@powerpipe/components/dashboards/Table";
import { getComponent } from "../index";
import { IFlow } from "./types";
const Table = getComponent("table");
Expand Down
2 changes: 2 additions & 0 deletions ui/dashboard/src/components/dashboards/graphs/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Ensure Table is loaded & registered first
import "@powerpipe/components/dashboards/Table";
import { getComponent } from "../index";
import { IGraph } from "./types";
const Table = getComponent("table");
Expand Down
2 changes: 2 additions & 0 deletions ui/dashboard/src/components/dashboards/hierarchies/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Ensure Table is loaded & registered first
import "@powerpipe/components/dashboards/Table";
import { getComponent } from "../index";
import { IHierarchy } from "./types";
const Table = getComponent("table");
Expand Down
2 changes: 2 additions & 0 deletions ui/dashboard/src/components/dashboards/inputs/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Ensure Table is loaded & registered first
import "@powerpipe/components/dashboards/Table";
import { getComponent } from "../index";
import { IInput } from "./types";
const Table = getComponent("table");
Expand Down
2 changes: 2 additions & 0 deletions ui/dashboard/src/components/dashboards/layout/Child/index.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Ensure Table is loaded & registered first
import "@powerpipe/components/dashboards/Table";
import {
DashboardLayoutNode,
DashboardPanelType,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Ensure Table is loaded & registered first
import "@powerpipe/components/dashboards/Table";
import Panel from "../Panel";
import { getComponent } from "../../index";
import { PanelDetailProps } from "./index";
Expand Down
Loading