remove guideliens form rule list state table (#37839)

pull/37924/head
Domas 4 years ago committed by GitHub
parent db2e0d46b7
commit 5ab8d6a3b9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      public/app/features/alerting/unified/components/rules/RulesTable.tsx

@ -9,7 +9,7 @@ import { CombinedRule } from 'app/types/unified-alerting';
import { Annotation } from '../../utils/constants';
import { RuleState } from './RuleState';
import { RuleHealth } from './RuleHealth';
import { DynamicTableColumnProps, DynamicTableItemProps } from '../DynamicTable';
import { DynamicTable, DynamicTableColumnProps, DynamicTableItemProps } from '../DynamicTable';
import { DynamicTableWithGuidelines } from '../DynamicTableWithGuidelines';
type RuleTableColumnProps = DynamicTableColumnProps<CombinedRule>;
@ -57,9 +57,11 @@ export const RulesTable: FC<Props> = ({
return <div className={cx(wrapperClass, styles.emptyMessage)}>{emptyMessage}</div>;
}
const TableComponent = showGuidelines ? DynamicTableWithGuidelines : DynamicTable;
return (
<div className={wrapperClass} data-testid="rules-table">
<DynamicTableWithGuidelines
<TableComponent
cols={columns}
isExpandable={true}
items={items}

Loading…
Cancel
Save