Fixing CSRF issues (#2569)

* 0.17.4

* Fixing CSRF issues

Since turning CSRF across the site with Flask-WTF, a few POST request
have been failing. This PR addresses these issues.
This commit is contained in:
Maxime Beauchemin
2017-04-07 10:57:31 -07:00
committed by GitHub
parent 3ed45ab98c
commit ddeabdd048
9 changed files with 29 additions and 23 deletions

View File

@@ -1,18 +0,0 @@
import React from 'react';
import AlertContainer from 'react-alert';
export default class AlertsWrapper extends React.PureComponent {
render() {
return (
<AlertContainer
ref={ref => {
global.notify = ref;
}}
offset={14}
position="top right"
theme="dark"
time={5000}
transition="fade"
/>);
}
}

View File

@@ -5,7 +5,7 @@ import React from 'react';
import TabbedSqlEditors from './TabbedSqlEditors';
import QueryAutoRefresh from './QueryAutoRefresh';
import QuerySearch from './QuerySearch';
import AlertsWrapper from './AlertsWrapper';
import AlertsWrapper from '../../components/AlertsWrapper';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';