-
Notifications
You must be signed in to change notification settings - Fork 23
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
Add discernible text to prev/next pagination buttons. #553
Conversation
Hi @luniki |
Use Run test server using develop.opencast.org as backend:
Specify a different backend like stable.opencast.org:
It may take a few seconds for the interface to spin up. |
Hi @luniki, the build failed. Could you have a look and fix the errors. |
This pull request is deployed at test.admin-interface.opencast.org/553/2024-06-04_11-37-32/ . |
src/components/shared/Table.tsx
Outdated
@@ -336,7 +336,9 @@ const Table = ({ | |||
<button | |||
className={"button-like-anchor " + cn("prev", { disabled: !isNavigatePrevious() })} | |||
onClick={() => goToPage(pageOffset - 1)} | |||
/> | |||
> | |||
<span className="sr-only">{t("EVENTS.EVENTS.TABLE.PREVIOUS")}</span> |
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 couldn't find where the lang string EVENTS.EVENTS.TABLE.PREVIOUS
is in use anywhere else.
As EVENTS.EVENTS.TABLE.*
is specific to the events table, and as src/components/shared/Table.tsx
is shared between all tables, I suggest moving the PREVIOUS
and NEXT
lang string to the top level, maybe next to TABLE_NO_RESULT
or TABLE_LOADING
.
Could you make the neccessaray changes in src/i18n/org/opencastproject/adminui/languages/lang-en_US.json
?
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.
Ok, sure.
This pull request is deployed at test.admin-interface.opencast.org/553/2024-06-05_03-47-12/ . |
Fixes #529