Skip to content

Commit

Permalink
feat(kill containers): kill containers
Browse files Browse the repository at this point in the history
kill containers
  • Loading branch information
Manor committed Dec 30, 2019
1 parent 940b200 commit 9d4226c
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions ui/src/features/get-configuration.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class getConfiguration extends React.Component {

render() {
const {config, errorOnGetConfig, processingGetConfig, cleanFinishedContainersSuccess, cleanFinishedContainersFailure} = this.props;
const currentError = cleanFinishedContainersFailure || errorOnGetConfig;
const currentError = cleanFinishedContainersFailure || errorOnGetConfig;
return (
<Page title={'Settings'} description={'Customize Predator behavior'}>
<div>
Expand Down Expand Up @@ -81,10 +81,10 @@ class getConfiguration extends React.Component {
bodyStyle={{backgroundColor: '#2fbb67'}}
message={`${cleanFinishedContainersSuccess.deleted} containers were deleted`}
autoHideDuration={4000}
// onRequestClose={this.handleSnackbarClose}
onRequestClose={() => this.props.setCleanFinishedContainersSuccess(undefined)}
/>}

{currentError&&
{currentError &&
<ErrorDialog closeDialog={() => {
this.props.setCleanFinishedContainersFailure(undefined);
this.props.getConfigFailure(undefined);
Expand Down Expand Up @@ -113,7 +113,8 @@ const mapDispatchToProps = {
updateConfigSuccess: Actions.updateConfigSuccess,
getConfigFailure: Actions.getConfigFailure,
cleanFinishedContainers: Actions.cleanFinishedContainers,
setCleanFinishedContainersFailure: Actions.cleanFinishedContainersFailure
setCleanFinishedContainersFailure: Actions.cleanFinishedContainersFailure,
setCleanFinishedContainersSuccess: Actions.cleanFinishedContainersSuccess,

};

Expand Down

0 comments on commit 9d4226c

Please sign in to comment.