1
0
Fork 0

Make loading text show again to prevent spam clicking going to invalid path.

This commit is contained in:
Kitteh 2021-05-28 09:53:50 +01:00
parent 77105dca45
commit 8ce1b74387

View file

@ -59,13 +59,14 @@ export class KVKeysList extends Component<KVKeysListProps, KVKeysListState> {
}
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();
}
}