Skip to content

Commit

Permalink
add button constant added
Browse files Browse the repository at this point in the history
Signed-off-by: rinku-kumar-psl <[email protected]>
  • Loading branch information
rinku-kumar-psl committed Jun 13, 2022
1 parent cd5aff1 commit abfc01d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions dashboards-observability/common/constants/explorer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,5 +78,6 @@ export const REDUX_EXPL_SLICE_COUNT_DISTRIBUTION = 'countDistributionVisualizati
export const PLOTLY_GAUGE_COLUMN_NUMBER = 5;
export const APP_ANALYTICS_TAB_ID_REGEX = /application-analytics-tab.+/;
export const DEFAULT_AVAILABILITY_QUERY = 'stats count() by span( timestamp, 1h )';
export const ADD_BUTTON_TEXT = '+ Add color theme';

export const VIZ_CONTAIN_XY_AXIS = [visChartTypes.Bar, visChartTypes.Histogram, visChartTypes.Line, visChartTypes.Pie];
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import {
EuiComboBox,
} from '@elastic/eui';
import { isEmpty } from 'lodash';
import { ADD_BUTTON_TEXT } from '../../../../../../../../common/constants/explorer';


export const ConfigColorTheme = ({
Expand All @@ -29,7 +30,7 @@ export const ConfigColorTheme = ({
const { data } = visualizations;
const { data: vizData = {}, metadata: { fields = [] } = {} } = data?.rawVizData;

const addButtonText = '+ Add color theme';
const addButtonText = ADD_BUTTON_TEXT;
const getColorThemeRow = () => ({
ctid: htmlIdGenerator('ct')(),
name: '',
Expand Down

0 comments on commit abfc01d

Please sign in to comment.