+
@@ -123,12 +128,13 @@ const DashboardFilters: React.FC = ({
id={`filter-${filterIndex}`}
className='cove-form-select'
data-index='0'
- value={filter.queuedActive || filter.active}
+ value={loading ? 'Loading...' : filter.queuedActive || filter.active}
onChange={val => {
handleOnChange(filterIndex, val.target.value)
}}
- disabled={values.length === 1 && !nullVal(filter)}
+ disabled={loading ? true : values.length === 1 && !nullVal(filter)}
>
+ {loading && }
{nullVal(filter) && (
)
})}
diff --git a/packages/dashboard/src/components/DashboardFilters/dashboardfilter.styles.css b/packages/dashboard/src/components/DashboardFilters/dashboardfilter.styles.css
index a6abf0aba..0aec67ed5 100644
--- a/packages/dashboard/src/components/DashboardFilters/dashboardfilter.styles.css
+++ b/packages/dashboard/src/components/DashboardFilters/dashboardfilter.styles.css
@@ -8,4 +8,17 @@
height: calc(1.5em + 0.75rem + 2px);
align-self: flex-end;
}
+ .form-control:disabled {
+ background-color: var(--lightestGray);
+ }
+ .loading-filter {
+ position: relative;
+ .spinner-border {
+ position: absolute;
+ top: 55%;
+ right: 10%;
+ width: 1.5rem;
+ height: 1.5rem;
+ }
+ }
}