Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Kotahi
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
0
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
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Omo Oaiya
Kotahi
Commits
c13bf821
Commit
c13bf821
authored
6 years ago
by
Giannis Kopanas
Browse files
Options
Downloads
Patches
Plain Diff
add new menu to xpub
parent
ddfd9b2f
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
app/components/App.js
+8
-1
8 additions, 1 deletion
app/components/App.js
app/routes.js
+2
-0
2 additions, 0 deletions
app/routes.js
with
10 additions
and
1 deletion
app/components/App.js
+
8
−
1
View file @
c13bf821
...
...
@@ -2,6 +2,7 @@ import React from 'react'
import
styled
from
'
styled-components
'
import
{
compose
}
from
'
recompose
'
import
{
connect
}
from
'
react-redux
'
import
Authorize
from
'
pubsweet-client/src/helpers/Authorize
'
import
{
withRouter
,
matchPath
}
from
'
react-router-dom
'
// import PropTypes from 'prop-types'
...
...
@@ -36,7 +37,7 @@ const App = ({
})
=>
{
const
{
pathname
}
=
history
.
location
const
showLinks
=
pathname
.
match
(
/submit|manuscript/g
)
let
links
let
links
=
[]
if
(
showLinks
)
{
const
params
=
getParams
(
pathname
)
...
...
@@ -62,6 +63,12 @@ const App = ({
:
null
}
links
.
push
(
<
Authorize
object
=
{{}}
operation
=
"
can view teams menu
"
>
<
Action
to
=
"
/teams
"
>
Team
Manager
<
/Action
>
<
/Authorize>
,
)
return
(
<
Root
disableLinks
=
{
disableLinks
}
>
<
AppBar
...
...
This diff is collapsed.
Click to expand it.
app/routes.js
+
2
−
0
View file @
c13bf821
...
...
@@ -17,6 +17,7 @@ import SubmitPage from 'pubsweet-component-xpub-submit/src/components/SubmitPage
import
ManuscriptPage
from
'
pubsweet-component-xpub-manuscript/src/components/ManuscriptPage
'
import
ReviewersPage
from
'
pubsweet-component-xpub-review/src/components/ReviewersPage
'
import
ReviewPage
from
'
pubsweet-component-xpub-review/src/components/ReviewPage
'
import
TeamPage
from
'
pubsweet-component-xpub-teams-manager/src/components/TeamsManagerPage
'
import
DecisionPage
from
'
pubsweet-component-xpub-review/src/components/DecisionPage
'
import
UsersManager
from
'
pubsweet-component-users-manager/src/UsersManagerContainer
'
...
...
@@ -46,6 +47,7 @@ const Routes = () => (
exact
path
=
"
/projects/:project/versions/:version/submit
"
/>
<
PrivateRoute
component
=
{
TeamPage
}
exact
path
=
"
/teams
"
/>
<
PrivateRoute
component
=
{
ManuscriptPage
}
exact
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
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