fix: Fix locked instance extend volume notify twice time

fix locked instance extend volume notify twice time

Change-Id: I056cc1770467c85541fe22f08f464316c3b9d76f
This commit is contained in:
zhuyue 2021-09-06 15:09:02 +08:00
parent 6bbfce1586
commit b6a9ece014

View File

@ -70,6 +70,11 @@ export class ExtendVolume extends ModalAction {
init() {
this.store = globalVolumeStore;
this.state.showNotice = true;
}
get showNotice() {
return this.state.showNotice;
}
onSubmit = async (values) => {
@ -88,7 +93,10 @@ export class ExtendVolume extends ModalAction {
name: server.name,
})
);
return Promise.reject();
this.setState({
showNotice: false,
});
return;
}
}
return this.store.extendSize(id, rest);