Skip to content

Commit

Permalink
X-button Bug Fix (opensearch-project#1140)
Browse files Browse the repository at this point in the history
* X-button Bug Fix

Signed-off-by: Anand6Kumar <[email protected]>

* moved constant to file

Signed-off-by: Anand6Kumar <[email protected]>

Signed-off-by: Anand6Kumar <[email protected]>
  • Loading branch information
Anand6Kumar authored Oct 21, 2022
1 parent 5035712 commit 2e491f0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions common/constants/explorer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -273,3 +273,4 @@ export const SPAN = 'span';
export const AGGREGATION_INFO = 'At least one metric is required to render a chart';
export const DIMENSION_INFO = 'The timestamp type field can be selected as a first dimension only';
export const TIME_FIELD = 'time_field';
export const DISABLED_COLOUR = "#fafbfd";
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import {
AVAILABLE_FIELDS,
GROUPBY,
SELECTED_FIELDS,
DISABLED_COLOUR
} from '../../../../../../../../common/constants/explorer';
import {
ConfigList,
Expand Down Expand Up @@ -177,7 +178,7 @@ export const LogsViewConfigPanelItem = ({
<EuiText size="xs">
<EuiIcon
type="cross"
color="danger"
color={queriedFields.length === 0 ? "danger" : DISABLED_COLOUR}
onClick={() => handleServiceRemove(index, GROUPBY)}
/>
</EuiText>
Expand Down

0 comments on commit 2e491f0

Please sign in to comment.