-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
[UI] Return a warning message when results have not been found (Identify View) #7423
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
[UI] Return a warning message when results have not been found (Identify View) #7423
Conversation
Cloudflare Pages deployment
|
| showIdentificationSearchResults(page, results); | ||
| if (results.length > 0) { | ||
| //Ensure we have results | ||
| loading.hide(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Move loading.hide() to where it was.
| showIdentificationSearchResults(page, results); | ||
| } else { | ||
| // Show not found message | ||
| loading.hide(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See above.
| <div class="identifyProviderIds"></div> | ||
|
|
||
| <div> | ||
| <p style="display:flex; align-items:center" id="identifyNotFoundMessage" class="hide"><span class="material-icons warning" aria-hidden="true" style="margin-right:5px"></span>${IdentifyResultNotFound}</p> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Extract the inline style as #identifyNotFoundMessage (or add a new class for messages). I think we should create a new file (itemidentifier.scss) for this.
src/strings/en-us.json
Outdated
| "LabelExtractTrickplayDuringLibraryScanHelp": "Generate trickplay images when videos are imported during the library scan. Otherwise, they will be extracted during the trickplay images scheduled task. If generation is set to non-blocking this will not affect the time a library scan takes to complete.", | ||
| "LogLoadFailure": "Failed to load the log file. It may still be actively written to." | ||
| "LogLoadFailure": "Failed to load the log file. It may still be actively written to.", | ||
| "IdentifyResultNotFound": "No results found. Try different parameters." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I recommend adding new values in alphabetical order. In this case, there will be less chance of conflicts. Don't look that the file is currently unordered (at the end), just move the line up (starting from the beginning).
Also, maybe add a Message prefix to the string identifier?
… order. Create a new .scss file for itemidentifier and extract inline clases. Change id from identifyResultNotFound to messageIdentifyResultNotFound. Move .hide() where it was before.
If trying to identify an item and search doesn't return results, show the message
Issues
Fixes #7365