Skip to content

Commit

Permalink
(EPROC-21237) Fixed result displaying on data loading
Browse files Browse the repository at this point in the history
* (EPROC-21237) Fixed result displaying on data loading
  • Loading branch information
adanilov-sc authored Jul 25, 2022
1 parent 9bd0084 commit 8937613
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 4 deletions.
1 change: 0 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
[Release 3.1.6](https://github.com/OpusCapita/react-reference-select/releases/tag/v3.1.6) Thu May 26 2022 14:23:09 GMT+0300 (MSK)
=======================================================


[Release 3.1.5](https://github.com/OpusCapita/react-reference-select/releases/tag/v3.1.5) Wed May 25 2022 11:18:58 GMT+0300 (MSK)
=======================================================

Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ export default class ReferenceSearchDialog extends Component {
offset: 0,
max: 10,
items: [],
count: 0
count: -1
};

this.state = {
Expand Down Expand Up @@ -469,10 +469,17 @@ export default class ReferenceSearchDialog extends Component {
</div>
</div>
</div>
) : (
) : count === 0 ? (
<div className="bs-callout bs-callout-info">
{i18n.getMessage('common.ReferenceSearchDialog.itemsFound', { number: 0 })}
</div>
) : (
<div className="container-fluid">
<div className="pull-right spinner">
<i className="fa fa-spinner fa-spin" />&nbsp;
{i18n.getMessage('common.ReferenceSearchDialog.loadingPlaceholder')}
</div>
</div>
)}
</Modal.Body>
</Modal>
Expand Down
1 change: 1 addition & 0 deletions src/client/components/ReferenceSearchDialog/i18n/de.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ export default {
selectLabel: 'Wählen',
resetLabel: 'Zurücksetzen',
searchLabel: 'Suchen',
loadingPlaceholder: 'Suchen...',
itemsFound: "{number} Datensätze gefunden"
}
}
Expand Down
1 change: 1 addition & 0 deletions src/client/components/ReferenceSearchDialog/i18n/en.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ export default {
selectLabel: 'Select',
resetLabel: 'Reset',
searchLabel: 'Search',
loadingPlaceholder: 'Please wait...',
itemsFound: "{number} item(s) found"
}
}
Expand Down

0 comments on commit 8937613

Please sign in to comment.