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() {
|
render() {
|
||||||
if (!this.state.loaded) {
|
|
||||||
return (
|
|
||||||
<>
|
|
||||||
{ this.renderBreadcrumbs() }
|
|
||||||
<Alert variant="secondary">Loading...</Alert>
|
|
||||||
</>
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
{ this.state.iUpload > 0 ?
|
{ this.state.iUpload > 0 ?
|
||||||
|
@ -191,6 +182,7 @@ class ObjectList extends React.Component<Props, State> {
|
||||||
</div>
|
</div>
|
||||||
</Stack>
|
</Stack>
|
||||||
</Container>
|
</Container>
|
||||||
|
{ this.state.loaded ?
|
||||||
<ListGroup>
|
<ListGroup>
|
||||||
{ this.state.folders.map((f) =>
|
{ this.state.folders.map((f) =>
|
||||||
<LinkContainer key={f + "/"} to={ "/" + this.props.bucket + "/" + this.props.prefix + 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.Item>
|
||||||
)}
|
)}
|
||||||
</ListGroup>
|
</ListGroup>
|
||||||
|
:
|
||||||
|
<Alert variant="secondary">Loading...</Alert>
|
||||||
|
}
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue