Skip to content

Commit 0fbb87d

Browse files
authored
Removed the display "Loaded: x results" in the action bar (#129)
1 parent 8934a00 commit 0fbb87d

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1313

1414
### Changed
1515

16+
- Removed the display "Loaded: x results" in the action bar to avoid confusion (#83).
17+
1618
### Fixed
1719

1820
- Fixed the broken production version due to a missing package (#123).

src/components/ActionBar/ActionBar.jsx

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ import configManager from "../../configManager/configManager.js";
2626
* @returns {Component} custom action bar as defined by react-admin
2727
*/
2828
function ActionBar() {
29-
const { total, isLoading, perPage, resource } = useListContext();
29+
const { total, isLoading, resource } = useListContext();
3030
const [time, setTime] = useState(0);
3131
const [sourceInfoOpen, setSourceInfoOpen] = useState(false);
3232

@@ -48,19 +48,13 @@ function ActionBar() {
4848
const query = configManager.getQueryWorkingCopyById(resource);
4949
const context = query.comunicaContext;
5050
const sources = context.sources;
51-
const resultCount = total <= perPage ? total : perPage;
5251

5352
return (
5453
<Grid container direction="row" width={"100%"} rowSpacing={1}>
5554
<Grid item height={"fit-content"} width={"100%"}>
5655
<TopToolbar style={{ width: "100%", height: "fit-content" }}>
5756
<div style={{ flex: "1" }}></div>
5857
<div className="query-information">
59-
<div className="information-box">
60-
{isLoading && <strong>Loading: </strong>}
61-
{!isLoading && <strong>Loaded: </strong>}
62-
<span>{resultCount} results</span>
63-
</div>
6458
<div className="information-box">
6559
{isLoading && <strong>Runtime: </strong>}
6660
{!isLoading && <strong>Finished in: </strong>}

0 commit comments

Comments
 (0)