Skip to content
Snippets Groups Projects
Commit ca808274 authored by Yannis Barlas's avatar Yannis Barlas
Browse files

fix number of tabs showing in review and decision pages

parent 95425049
No related branches found
No related tags found
No related merge requests found
...@@ -12,8 +12,6 @@ import Reviews from '../Reviews' ...@@ -12,8 +12,6 @@ import Reviews from '../Reviews'
import VersionTitle from './VersionTitle' import VersionTitle from './VersionTitle'
const Actions = ({ project, version }) => { const Actions = ({ project, version }) => {
if (project.status === 'revising') return null
return ( return (
<div className={classes.links}> <div className={classes.links}>
<div className={classes.link}> <div className={classes.link}>
......
...@@ -64,7 +64,7 @@ const DecisionLayout = ({ ...@@ -64,7 +64,7 @@ const DecisionLayout = ({
const { decision } = currentVersion const { decision } = currentVersion
if (!decision || !decision.submitted) { if (currentVersion.submitted && (!decision || !decision.submitted)) {
const submittedMoment = moment() const submittedMoment = moment()
const key = submittedMoment.format('x') const key = submittedMoment.format('x')
const label = submittedMoment.format('YYYY-MM-DD') const label = submittedMoment.format('YYYY-MM-DD')
......
...@@ -68,7 +68,7 @@ const ReviewLayout = ({ ...@@ -68,7 +68,7 @@ const ReviewLayout = ({
review => review.reviewer === reviewer.id, review => review.reviewer === reviewer.id,
) )
if (!review || !review.submitted) { if (currentVersion.submitted && (!review || !review.submitted)) {
const submittedMoment = moment() const submittedMoment = moment()
const key = submittedMoment.format('x') const key = submittedMoment.format('x')
const label = submittedMoment.format('YYYY-MM-DD') const label = submittedMoment.format('YYYY-MM-DD')
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment