Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
catalog.genesys-pgr.org
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
13
Issues
13
List
Boards
Labels
Service Desk
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Genesys PGR
Genesys Catalog
catalog.genesys-pgr.org
Commits
e270e2cc
Commit
e270e2cc
authored
Oct 22, 2018
by
Matija Obreza
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix: Home icon must point to the backend server
parent
e2536067
Pipeline
#7157
passed with stages
in 7 minutes and 52 seconds
Changes
2
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
2 deletions
+9
-2
src/ui/layout/Header/LeftMenu.tsx
src/ui/layout/Header/LeftMenu.tsx
+7
-1
src/ui/layout/Header/index.tsx
src/ui/layout/Header/index.tsx
+2
-1
No files found.
src/ui/layout/Header/LeftMenu.tsx
View file @
e270e2cc
import
*
as
React
from
'
react
'
;
import
{
connect
}
from
'
react-redux
'
;
import
{
withStyles
}
from
'
@material-ui/core/styles
'
;
import
{
translate
}
from
'
react-i18next
'
;
...
...
@@ -121,4 +122,9 @@ class LeftMenu extends React.Component<ILeftMenuProps, any> {
}
}
export
default
translate
()((
withStyles
as
any
)(
styleSheet
)(
LeftMenu
));
const
mapStateToProps
=
(
state
)
=>
({
baseUrl
:
state
.
applicationConfig
.
apiUrl
,
});
export
default
connect
(
mapStateToProps
)(
translate
()((
withStyles
as
any
)(
styleSheet
)(
LeftMenu
)));
src/ui/layout/Header/index.tsx
View file @
e270e2cc
import
*
as
React
from
'
react
'
;
import
{
connect
}
from
'
react-redux
'
;
import
{
bindActionCreators
}
from
'
redux
'
;
import
{
bindActionCreators
}
from
'
redux
'
;
import
{
NavLink
,
Link
,
withRouter
}
from
'
react-router-dom
'
;
import
{
translate
}
from
'
react-i18next
'
;
...
...
@@ -193,6 +193,7 @@ class Header extends React.Component<IHeaderProps | any, any> {
const
mapStateToProps
=
(
state
)
=>
({
login
:
state
.
login
,
baseUrl
:
state
.
applicationConfig
.
apiUrl
,
});
const
mapDispatchToProps
=
(
dispatch
)
=>
bindActionCreators
({
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment