fix(ui): card data to use chart api inside dashbaord and cards library
This commit is contained in:
parent
22a1be80ad
commit
74ba3e1c1a
3 changed files with 6 additions and 1 deletions
|
|
@ -74,6 +74,7 @@ function CardsLibrary(props: Props) {
|
|||
metric={metric}
|
||||
isTemplate={true}
|
||||
isWidget={true}
|
||||
isSaved={true}
|
||||
/>
|
||||
</Card>
|
||||
</LazyLoad>
|
||||
|
|
|
|||
|
|
@ -56,6 +56,7 @@ function DashboardWidgetGrid(props: Props) {
|
|||
siteId={siteId}
|
||||
grid="other"
|
||||
showMenu={true}
|
||||
isSaved={true}
|
||||
/>
|
||||
</React.Fragment>
|
||||
))
|
||||
|
|
|
|||
|
|
@ -32,6 +32,7 @@ interface Props {
|
|||
grid?: string;
|
||||
isGridView?: boolean;
|
||||
showMenu?: boolean;
|
||||
isSaved?: boolean;
|
||||
}
|
||||
|
||||
function WidgetWrapperNew(props: Props & RouteComponentProps) {
|
||||
|
|
@ -46,7 +47,8 @@ function WidgetWrapperNew(props: Props & RouteComponentProps) {
|
|||
siteId,
|
||||
grid = '',
|
||||
isGridView = false,
|
||||
showMenu = false
|
||||
showMenu = false,
|
||||
isSaved = false
|
||||
} = props;
|
||||
const widget: any = props.widget;
|
||||
const isTimeSeries = widget.metricType === TIMESERIES;
|
||||
|
|
@ -151,6 +153,7 @@ function WidgetWrapperNew(props: Props & RouteComponentProps) {
|
|||
metric={widget}
|
||||
isTemplate={isTemplate}
|
||||
isWidget={isWidget}
|
||||
isSaved={isSaved}
|
||||
/>
|
||||
</div>
|
||||
</LazyLoad>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue