mirror of
https://github.com/yldio/copilot.git
synced 2024-11-28 06:00:06 +02:00
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) {
|
||||
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 (
|
||||
|
Loading…
Reference in New Issue
Block a user