mirror of
https://github.com/vector-im/element-web.git
synced 2025-10-17 18:32:20 +02:00
Fix loading state issues for spaces pagination
This commit is contained in:
parent
d74e9c4f90
commit
38645d9054
@ -441,7 +441,7 @@ const SpaceHierarchy = ({
|
||||
|
||||
let content: JSX.Element;
|
||||
let loader: JSX.Element;
|
||||
if (loading) {
|
||||
if (loading && !rooms.length) {
|
||||
content = <Spinner />;
|
||||
} else {
|
||||
let manageButtons;
|
||||
@ -558,9 +558,11 @@ const SpaceHierarchy = ({
|
||||
/>
|
||||
</>;
|
||||
|
||||
loader = <div ref={loaderRef}>
|
||||
<Spinner />
|
||||
</div>;
|
||||
if (hierarchy.canLoadMore) {
|
||||
loader = <div ref={loaderRef}>
|
||||
<Spinner />
|
||||
</div>;
|
||||
}
|
||||
} else {
|
||||
results = <div className="mx_SpaceHierarchy_noResults">
|
||||
<h3>{ _t("No results found") }</h3>
|
||||
|
Loading…
x
Reference in New Issue
Block a user