From 8ce1b74387dcf05f497e8e6a6d9603775c282535 Mon Sep 17 00:00:00 2001 From: Kitteh Date: Fri, 28 May 2021 09:53:50 +0100 Subject: [PATCH] Make loading text show again to prevent spam clicking going to invalid path. --- src/pages/Secrets/KeyValue/KeyValueView.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/pages/Secrets/KeyValue/KeyValueView.tsx b/src/pages/Secrets/KeyValue/KeyValueView.tsx index a8d66d4..8996893 100644 --- a/src/pages/Secrets/KeyValue/KeyValueView.tsx +++ b/src/pages/Secrets/KeyValue/KeyValueView.tsx @@ -59,13 +59,14 @@ export class KVKeysList extends Component { } componentDidUpdate(prevProps: KVKeysListProps): void { - // Do not set state.dataLoaded to false in here - // to provide a more smooth experiance when going through multiple keys. if ( prevProps.baseMount !== this.props.baseMount || prevProps.secretMountType !== this.props.secretMountType || prevProps.secretPath !== this.props.secretPath ) { + this.setState({ + dataLoaded: false + }); void this.loadData(); } }