Skip to content
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

Fix: Fix errors related to navigation #1623

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

Koc
Copy link

@Koc Koc commented Feb 19, 2025

Right now we have 2 annoying errors in console. This pr fixes both of them. Includes #1477.

image

image

Signed-off-by: Kostiantyn Miakshyn <molodchick@gmail.com>
@Koc Koc requested review from enjeck and blizzz as code owners February 19, 2025 22:44
@@ -85,20 +88,20 @@ export default {
this.setActiveTableId(parseInt(currentRoute.params.tableId))
this.setPageTitle(this.activeTable.title)
if (!currentRoute.path.includes('/row/')) {
this.switchActiveMenuEntry(document.querySelector('header .header-left .app-menu a[title="Tables"]'))
this.switchActiveMenuEntry(document.querySelector(`header .header-start .app-menu a[href="${url}"]`))
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you have any other idea how to make it works for non-en locales - feel free to suggest

Copy link
Contributor

@enjeck enjeck left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I started trying to also fix these errors at #1477. We've had to fix these multiple times whenever the classnames change, and have been thinking of a more stable solution. There's a suggestion #1477 (comment) to consider using a server API, that I'm yet to look at.

@blizzz blizzz added 3. to review Waiting for reviews bug Something isn't working labels Feb 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants