1
0
mirror of https://github.com/yldio/copilot.git synced 2024-11-14 23:30:05 +02:00

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 (