Make loading text show again to prevent spam clicking going to invalid path.
This commit is contained in:
parent
77105dca45
commit
8ce1b74387
|
@ -59,13 +59,14 @@ export class KVKeysList extends Component<KVKeysListProps, KVKeysListState> {
|
||||||
}
|
}
|
||||||
|
|
||||||
componentDidUpdate(prevProps: KVKeysListProps): void {
|
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 (
|
if (
|
||||||
prevProps.baseMount !== this.props.baseMount ||
|
prevProps.baseMount !== this.props.baseMount ||
|
||||||
prevProps.secretMountType !== this.props.secretMountType ||
|
prevProps.secretMountType !== this.props.secretMountType ||
|
||||||
prevProps.secretPath !== this.props.secretPath
|
prevProps.secretPath !== this.props.secretPath
|
||||||
) {
|
) {
|
||||||
|
this.setState({
|
||||||
|
dataLoaded: false
|
||||||
|
});
|
||||||
void this.loadData();
|
void this.loadData();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue