mirror of
https://github.com/apache/superset.git
synced 2026-04-21 00:54:44 +00:00
[explorev2] Breaking down large files, fixing JS warnings (#1773)
* Breaking down large files, fixing JS warnings * fix unit tests
This commit is contained in:
committed by
GitHub
parent
3597fdb7f8
commit
c1558578d7
@@ -165,7 +165,7 @@ class ChartContainer extends React.Component {
|
||||
id={this.props.containerId}
|
||||
ref={(ref) => { this.chartContainerRef = ref; }}
|
||||
className={this.props.viz_type}
|
||||
style={{ 'overflow-x': 'scroll' }}
|
||||
style={{ overflowX: 'scroll' }}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@ import { bindActionCreators } from 'redux';
|
||||
import * as actions from '../actions/exploreActions';
|
||||
import { connect } from 'react-redux';
|
||||
import { Panel, Alert } from 'react-bootstrap';
|
||||
import { visTypes, sectionsToRender, commonControlPanelSections } from '../stores/store';
|
||||
import visTypes, { sectionsToRender, commonControlPanelSections } from '../stores/visTypes';
|
||||
import ControlPanelSection from './ControlPanelSection';
|
||||
import FieldSetRow from './FieldSetRow';
|
||||
import Filters from './Filters';
|
||||
|
||||
@@ -7,7 +7,7 @@ import ChartContainer from './ChartContainer';
|
||||
import ControlPanelsContainer from './ControlPanelsContainer';
|
||||
import SaveModal from './SaveModal';
|
||||
import QueryAndSaveBtns from '../../explore/components/QueryAndSaveBtns';
|
||||
import { autoQueryFields } from '../stores/store';
|
||||
import { autoQueryFields } from '../stores/fields';
|
||||
import { getParamObject } from '../exploreUtils';
|
||||
|
||||
const $ = require('jquery');
|
||||
|
||||
@@ -3,7 +3,7 @@ import TextField from './TextField';
|
||||
import CheckboxField from './CheckboxField';
|
||||
import TextAreaField from './TextAreaField';
|
||||
import SelectField from './SelectField';
|
||||
import { fieldTypes } from '../stores/store';
|
||||
import { fieldTypes } from '../stores/fields';
|
||||
|
||||
const propTypes = {
|
||||
name: PropTypes.string.isRequired,
|
||||
|
||||
@@ -30,11 +30,14 @@ class Filters extends React.Component {
|
||||
}
|
||||
render() {
|
||||
const filters = [];
|
||||
let i = 0;
|
||||
this.props.filters.forEach((filter) => {
|
||||
// only display filters with current prefix
|
||||
i++;
|
||||
if (filter.prefix === this.props.prefix) {
|
||||
filters.push(
|
||||
<Filter
|
||||
key={i}
|
||||
filterColumnOpts={this.props.filterColumnOpts}
|
||||
actions={this.props.actions}
|
||||
prefix={this.props.prefix}
|
||||
|
||||
Reference in New Issue
Block a user