Reformat loading thing
This commit is contained in:
parent
51d96396ef
commit
7e324ec541
1 changed files with 40 additions and 45 deletions
|
@ -151,15 +151,6 @@ class ObjectList extends React.Component<Props, State> {
|
|||
}
|
||||
|
||||
render() {
|
||||
if (!this.state.loaded) {
|
||||
return (
|
||||
<>
|
||||
{ this.renderBreadcrumbs() }
|
||||
<Alert variant="secondary">Loading...</Alert>
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
return (
|
||||
<>
|
||||
{ this.state.iUpload > 0 ?
|
||||
|
@ -191,6 +182,7 @@ class ObjectList extends React.Component<Props, State> {
|
|||
</div>
|
||||
</Stack>
|
||||
</Container>
|
||||
{ this.state.loaded ?
|
||||
<ListGroup>
|
||||
{ this.state.folders.map((f) =>
|
||||
<LinkContainer key={f + "/"} to={ "/" + this.props.bucket + "/" + this.props.prefix + f }>
|
||||
|
@ -227,6 +219,9 @@ class ObjectList extends React.Component<Props, State> {
|
|||
</ListGroup.Item>
|
||||
)}
|
||||
</ListGroup>
|
||||
:
|
||||
<Alert variant="secondary">Loading...</Alert>
|
||||
}
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue