Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
frontend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
minerva
frontend
Commits
7e677f72
Commit
7e677f72
authored
7 months ago
by
Piotr Gawron
Browse files
Options
Downloads
Patches
Plain Diff
link to old interface added
parent
65b82709
No related branches found
No related tags found
2 merge requests
!223
reset the pin numbers before search results are fetch (so the results will be...
,
!217
Resolve "link to old interface"
Pipeline
#93323
passed
7 months ago
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/components/FunctionalArea/NavBar/NavBar.component.tsx
+11
-0
11 additions, 0 deletions
src/components/FunctionalArea/NavBar/NavBar.component.tsx
with
11 additions
and
0 deletions
src/components/FunctionalArea/NavBar/NavBar.component.tsx
+
11
−
0
View file @
7e677f72
...
...
@@ -9,10 +9,14 @@ import { IconButton } from '@/shared/IconButton';
import
{
store
}
from
'
@/redux/store
'
;
import
Image
from
'
next/image
'
;
import
{
useAppSelector
}
from
'
@/redux/hooks/useAppSelector
'
;
import
{
projectIdSelector
}
from
'
@/redux/project/project.selectors
'
;
export
const
NavBar
=
():
JSX
.
Element
=>
{
const
dispatch
=
useAppDispatch
();
const
projectId
=
useAppSelector
(
projectIdSelector
);
const
toggleDrawerInfo
=
():
void
=>
{
if
(
store
.
getState
().
drawer
.
isOpen
&&
store
.
getState
().
drawer
.
drawerName
===
'
project-info
'
)
{
dispatch
(
closeDrawer
());
...
...
@@ -56,6 +60,8 @@ export const NavBar = (): JSX.Element => {
const
apiDocsUrl
=
constant
?
constant
.
apiDocsUrl
:
''
;
const
oldUrl
=
`old_index.xhtml?id=
${
projectId
}
`
;
return
(
<
div
className
=
"flex min-h-full w-[88px] flex-col items-center justify-between overflow-y-auto bg-cultured py-8"
>
<
div
data-testid
=
"nav-buttons"
>
...
...
@@ -87,6 +93,11 @@ export const NavBar = (): JSX.Element => {
{
version
}
</
a
>
</
span
>
<
span
className
=
"text-center text-[8px] leading-4"
>
<
a
href
=
{
oldUrl
}
target
=
"_old_interface"
>
Old interface
</
a
>
</
span
>
</
div
>
</
div
>
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment