From b6a9ece0148b4898eeacdd22c81a41da71bd7725 Mon Sep 17 00:00:00 2001 From: zhuyue Date: Mon, 6 Sep 2021 15:09:02 +0800 Subject: [PATCH] fix: Fix locked instance extend volume notify twice time fix locked instance extend volume notify twice time Change-Id: I056cc1770467c85541fe22f08f464316c3b9d76f --- .../storage/containers/Volume/actions/ExtendVolume.jsx | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/pages/storage/containers/Volume/actions/ExtendVolume.jsx b/src/pages/storage/containers/Volume/actions/ExtendVolume.jsx index f912c7aa..4cc7e138 100644 --- a/src/pages/storage/containers/Volume/actions/ExtendVolume.jsx +++ b/src/pages/storage/containers/Volume/actions/ExtendVolume.jsx @@ -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);