Remove extraneous flash success messages (#1226)

This commit is contained in:
Kyle Knight 2017-02-23 09:49:16 -06:00 committed by GitHub
parent bce8985a38
commit 0d6aa52ce2
5 changed files with 0 additions and 10 deletions

View file

@ -143,8 +143,6 @@ export class UserManagementPage extends Component {
dispatch(inviteActions.silentCreate(formData))
.then(() => {
dispatch(renderFlash('success', 'User invited'));
return this.toggleInviteUserModal();
})
.catch(() => false);

View file

@ -216,7 +216,6 @@ export class ManageHostsPage extends Component {
.then(() => {
toggleDeleteLabelModal();
dispatch(push(MANAGE_HOSTS));
dispatch(renderFlash('success', 'Label successfully deleted'));
return false;
});
}

View file

@ -199,10 +199,6 @@ export class EditPackPage extends Component {
};
dispatch(create(scheduledQueryData))
.then(() => {
this.setState({ selectedScheduledQuery: null, selectedQuery: null });
dispatch(renderFlash('success', 'Query scheduled!'));
})
.catch(() => {
dispatch(renderFlash('error', 'Unable to schedule your query.'));
});

View file

@ -6,7 +6,6 @@ import { push } from 'react-router-redux';
import packActions from 'redux/nodes/entities/packs/actions';
import PackForm from 'components/forms/packs/PackForm';
import PackInfoSidePanel from 'components/side_panels/PackInfoSidePanel';
import { renderFlash } from 'redux/nodes/notifications/actions';
const baseClass = 'pack-composer';
@ -40,7 +39,6 @@ export class PackComposerPage extends Component {
const { dispatch } = this.props;
dispatch(push(`/packs/${packID}`));
dispatch(renderFlash('success', 'Pack created!'));
return false;
}

View file

@ -238,7 +238,6 @@ export class QueryPage extends Component {
return dispatch(queryActions.create(formData))
.then((query) => {
dispatch(push(`/queries/${query.id}`));
dispatch(renderFlash('success', 'Query created'));
})
.catch(() => false);
})