mirror of
https://github.com/fleetdm/fleet
synced 2026-05-23 17:08:53 +00:00
Remove extraneous flash success messages (#1226)
This commit is contained in:
parent
bce8985a38
commit
0d6aa52ce2
5 changed files with 0 additions and 10 deletions
|
|
@ -143,8 +143,6 @@ export class UserManagementPage extends Component {
|
|||
|
||||
dispatch(inviteActions.silentCreate(formData))
|
||||
.then(() => {
|
||||
dispatch(renderFlash('success', 'User invited'));
|
||||
|
||||
return this.toggleInviteUserModal();
|
||||
})
|
||||
.catch(() => false);
|
||||
|
|
|
|||
|
|
@ -216,7 +216,6 @@ export class ManageHostsPage extends Component {
|
|||
.then(() => {
|
||||
toggleDeleteLabelModal();
|
||||
dispatch(push(MANAGE_HOSTS));
|
||||
dispatch(renderFlash('success', 'Label successfully deleted'));
|
||||
return false;
|
||||
});
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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.'));
|
||||
});
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
})
|
||||
|
|
|
|||
Loading…
Reference in a new issue