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:
parent
6bbfce1586
commit
b6a9ece014
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user