diff --git a/frontend/app/components/Dashboard/Dashboard.js b/frontend/app/components/Dashboard/Dashboard.js
index 633df2932..6bd682db4 100644
--- a/frontend/app/components/Dashboard/Dashboard.js
+++ b/frontend/app/components/Dashboard/Dashboard.js
@@ -221,10 +221,12 @@ export default class Dashboard extends React.PureComponent {
className="mb-4"
description={
-
-
- Custom Metrics are not supported for comparison.
-
+ {comparing && (
+
+
+ Custom Metrics are not supported for comparison.
+
+ )}
}
diff --git a/frontend/app/components/shared/Filters/FilterAutoComplete/FilterAutoComplete.tsx b/frontend/app/components/shared/Filters/FilterAutoComplete/FilterAutoComplete.tsx
index d68b0587b..3f7d432b0 100644
--- a/frontend/app/components/shared/Filters/FilterAutoComplete/FilterAutoComplete.tsx
+++ b/frontend/app/components/shared/Filters/FilterAutoComplete/FilterAutoComplete.tsx
@@ -119,7 +119,7 @@ function FilterAutoComplete(props: Props) {
className={stl.right}
// onClick={showOrButton ? onRemoveValue : onAddValue}
>
- { showCloseButton &&
}
+ { showCloseButton &&
}
{ showOrButton && or
}
diff --git a/frontend/app/components/shared/Filters/FilterValueDropdown/FilterValueDropdown.css b/frontend/app/components/shared/Filters/FilterValueDropdown/FilterValueDropdown.css
index 6a06c46cc..d93803884 100644
--- a/frontend/app/components/shared/Filters/FilterValueDropdown/FilterValueDropdown.css
+++ b/frontend/app/components/shared/Filters/FilterValueDropdown/FilterValueDropdown.css
@@ -53,8 +53,8 @@
&.ui.basic.button {
box-shadow: 0 0 0 1px rgba(62, 170, 175,36,38,.35) inset, 0 0 0 0 rgba(62, 170, 175,.15) inset !important;
}
-
+/*
& input {
padding: 0 8px !important;
- }
+ } */
}
\ No newline at end of file
diff --git a/frontend/app/components/shared/Filters/FilterValueDropdown/FilterValueDropdown.tsx b/frontend/app/components/shared/Filters/FilterValueDropdown/FilterValueDropdown.tsx
index 31d830d11..1381f509a 100644
--- a/frontend/app/components/shared/Filters/FilterValueDropdown/FilterValueDropdown.tsx
+++ b/frontend/app/components/shared/Filters/FilterValueDropdown/FilterValueDropdown.tsx
@@ -25,20 +25,20 @@ function FilterValueDropdown(props: Props) {
}
+ icon={
}
/>
- { showCloseButton &&
}
+ { showCloseButton &&
}
{ showOrButton &&
or
}
diff --git a/frontend/app/components/shared/MainSearchBar/MainSearchBar.tsx b/frontend/app/components/shared/MainSearchBar/MainSearchBar.tsx
index 8125e09ff..0ed764339 100644
--- a/frontend/app/components/shared/MainSearchBar/MainSearchBar.tsx
+++ b/frontend/app/components/shared/MainSearchBar/MainSearchBar.tsx
@@ -7,8 +7,11 @@ import { connect } from 'react-redux';
interface Props {
clearSearch: () => void;
+ appliedFilter: any;
}
const MainSearchBar = (props: Props) => {
+ const { appliedFilter } = props;
+ const hasFilters = appliedFilter && appliedFilter.filters && appliedFilter.filters.size > 0;
return (
@@ -18,6 +21,7 @@ const MainSearchBar = (props: Props) => {
trigger={
)
}
-export default connect(null, { clearSearch })(MainSearchBar);
\ No newline at end of file
+export default connect(state => ({
+ appliedFilter: state.getIn(['search', 'instance']),
+}), { clearSearch })(MainSearchBar);
\ No newline at end of file
diff --git a/frontend/app/components/ui/Button/Button.js b/frontend/app/components/ui/Button/Button.js
index 7f2579114..b8599eab7 100644
--- a/frontend/app/components/ui/Button/Button.js
+++ b/frontend/app/components/ui/Button/Button.js
@@ -14,6 +14,7 @@ export default ({
success = false,
error = false,
minWidth,
+ disabled = false,
...props
}) => (