feat(cp-frontend): remove scale modal after mutate response

This commit is contained in:
Sérgio Ramos 2017-06-28 10:57:30 +01:00 committed by Judit Greskovits
parent 6aec0d3f68
commit 20052a4a13

View File

@ -13,6 +13,7 @@ class ServiceScale extends Component {
if (this.props.loading) {
return <Loader />;
}
if (this.props.error) {
return (
<ErrorMessage message="Oops, an error occured while loading your service." />
@ -46,7 +47,7 @@ class ServiceScale extends Component {
};
const handleSubmitClick = values => {
scale(service.id, values.replicas);
scale(service.id, values.replicas).then(handleCloseClick);
};
return (