Skip to content

Conversation

@NaiSidera
Copy link
Contributor

No description provided.

@NaiSidera NaiSidera requested a review from Raubzeug June 20, 2024 10:52
@Raubzeug
Copy link
Contributor

It seems it's not navigation any longer and not a part of navigation. Let's rename it to let say TenantViewModes and remove from AsideNavigation folder.

"controls.query-mode-selector_type": "Query type:",

"tabs.newQuery": "Query",
"sections.query": "Query",
Copy link
Contributor

Choose a reason for hiding this comment

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

This translations should not be here. The better place is /Tenant/ObjectGeneral/TenantWorkModes/i18n
And please remove old translations from AsideNavigation translations.

size="l"
className={b('body')}
defaultValue={getCurrentItem().id}
options={Object.values(navigationItems).map(transformItemToOption)}
Copy link
Contributor

Choose a reason for hiding this comment

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

Why do you need to use Object.values here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Forgot to change this line
I used to make an object from the array (array to indexed), but dropped the idea eventually

id: TENANT_PAGES_IDS.query,
title: i18n('pages.query'),
icon: Terminal,
iconSize: 20,
Copy link
Contributor

Choose a reason for hiding this comment

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

Please remove this property, it is set for all items in a row in return.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That's the original code, I made no changes xd

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I agree it should be done this way btw

@NaiSidera NaiSidera requested a review from Raubzeug June 25, 2024 23:21
@Raubzeug Raubzeug force-pushed the 811-relocate-nav branch 2 times, most recently from dfb0e22 to 895ff85 Compare June 26, 2024 12:27
@Raubzeug Raubzeug merged commit 6161d97 into main Jun 26, 2024
@Raubzeug Raubzeug deleted the 811-relocate-nav branch June 26, 2024 12:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants