feat(cp-frontend): remove scale modal after mutate response
This commit is contained in:
parent
6aec0d3f68
commit
20052a4a13
@ -13,6 +13,7 @@ class ServiceScale extends Component {
|
|||||||
if (this.props.loading) {
|
if (this.props.loading) {
|
||||||
return <Loader />;
|
return <Loader />;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.props.error) {
|
if (this.props.error) {
|
||||||
return (
|
return (
|
||||||
<ErrorMessage message="Oops, an error occured while loading your service." />
|
<ErrorMessage message="Oops, an error occured while loading your service." />
|
||||||
@ -46,7 +47,7 @@ class ServiceScale extends Component {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const handleSubmitClick = values => {
|
const handleSubmitClick = values => {
|
||||||
scale(service.id, values.replicas);
|
scale(service.id, values.replicas).then(handleCloseClick);
|
||||||
};
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
Loading…
Reference in New Issue
Block a user