3245 Remove the "Finishing up" tab if the project has no connection to Daisy
Temporary fix until a better one is in place
This commit is contained in:
parent
08e1c732df
commit
09318002a8
@ -63,12 +63,16 @@ public class SupervisorSubTabMenuPanel extends AbstractMenuPanel {
|
||||
items.add(new MenuItem(INTERACT_WITH_REVIEWER, SupervisorInteractWithReviewerPage.class, projectParams));
|
||||
}
|
||||
items.add(new MenuItem(FINAL_SEMINAR, SupervisorFinalSeminarPage.class, MenuHighlightFinalSeminar.class, projectParams));
|
||||
if (gradingReportTemplateIsAvailable()) {
|
||||
if (gradingReportTemplateIsAvailable() && hasDaisyConnection()) {
|
||||
items.add(new MenuItem(SEND_TO_EXAMINER, SupervisorGradingReportPage.class, MenuHighlightSupervisorGradingReport.class, projectParams));
|
||||
}
|
||||
return items;
|
||||
}
|
||||
|
||||
private boolean hasDaisyConnection() {
|
||||
return projectModel.getObject().getIdentifier() != null;
|
||||
}
|
||||
|
||||
private boolean isReviewed() {
|
||||
return projectModel.getObject().getProjectType().isReviewed();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user