mirror of
https://github.com/apache/superset.git
synced 2026-04-17 15:15:20 +00:00
Bumping the JS libs to fix the build (#2616)
* bumping the js libs * New linting rules * More linting * More * Done linting * npm >=4.5.0 * Bumping node * Tweaking the build * Fixing the damn build * Fixing the apps
This commit is contained in:
committed by
GitHub
parent
a2b30f35fc
commit
366ecefbaa
@@ -1,8 +1,6 @@
|
||||
const $ = window.$ = require('jquery');
|
||||
|
||||
import React from 'react';
|
||||
|
||||
import { ButtonGroup } from 'react-bootstrap';
|
||||
|
||||
import Button from '../../components/Button';
|
||||
import CssEditor from './CssEditor';
|
||||
import RefreshIntervalModal from './RefreshIntervalModal';
|
||||
@@ -10,6 +8,8 @@ import SaveModal from './SaveModal';
|
||||
import CodeModal from './CodeModal';
|
||||
import SliceAdder from './SliceAdder';
|
||||
|
||||
const $ = window.$ = require('jquery');
|
||||
|
||||
const propTypes = {
|
||||
dashboard: React.PropTypes.object.isRequired,
|
||||
};
|
||||
@@ -22,14 +22,9 @@ class Controls extends React.PureComponent {
|
||||
cssTemplates: [],
|
||||
};
|
||||
}
|
||||
refresh() {
|
||||
this.props.dashboard.sliceObjects.forEach((slice) => {
|
||||
slice.render(true);
|
||||
});
|
||||
}
|
||||
componentWillMount() {
|
||||
$.get('/csstemplateasyncmodelview/api/read', (data) => {
|
||||
const cssTemplates = data.result.map((row) => ({
|
||||
const cssTemplates = data.result.map(row => ({
|
||||
value: row.template_name,
|
||||
css: row.css,
|
||||
label: row.template_name,
|
||||
@@ -37,6 +32,11 @@ class Controls extends React.PureComponent {
|
||||
this.setState({ cssTemplates });
|
||||
});
|
||||
}
|
||||
refresh() {
|
||||
this.props.dashboard.sliceObjects.forEach((slice) => {
|
||||
slice.render(true);
|
||||
});
|
||||
}
|
||||
changeCss(css) {
|
||||
this.setState({ css });
|
||||
this.props.dashboard.onChange();
|
||||
@@ -99,7 +99,7 @@ class Controls extends React.PureComponent {
|
||||
<Button
|
||||
onClick={() => { window.location = emailLink; }}
|
||||
>
|
||||
<i className="fa fa-envelope"></i>
|
||||
<i className="fa fa-envelope" />
|
||||
</Button>
|
||||
</ButtonGroup>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user