[Dashboard bug] Slice doesn't show loading icon when loading (#3834)

This commit is contained in:
Grace Guo 2017-11-13 16:07:15 -08:00 committed by GitHub
parent 3f076b00cd
commit eb5d220b5e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -20,7 +20,7 @@ export const chartPropType = {
export const chart = {
chartKey: '',
chartAlert: null,
chartStatus: null,
chartStatus: 'loading',
chartUpdateEndTime: null,
chartUpdateStartTime: now(),
latestQueryFormData: null,

View File

@ -151,7 +151,7 @@ class GridLayout extends React.Component {
exploreChartUrl={getExploreUrl(this.props.getFormDataExtra(slice))}
exportCSVUrl={getExploreUrl(this.props.getFormDataExtra(slice), 'csv')}
isExpanded={!!this.isExpanded(slice)}
isLoading={[undefined, 'loading'].indexOf(currentChart.chartStatus) !== -1}
isLoading={currentChart.chartStatus === 'loading'}
isCached={queryResponse.is_cached}
cachedDttm={queryResponse.cached_dttm}
toggleExpandSlice={this.props.toggleExpandSlice}

View File

@ -11,7 +11,7 @@ text.nv-axislabel {
font-size: 14px;
}
.dist_bar {
.slice_container.dist_bar {
overflow-x: auto !important;
}