Skip to content
Snippets Groups Projects
Commit 8cb7e272 authored by uhensler's avatar uhensler
Browse files

OO-4315: Disable previous/next buttons if appropriate

parent 3e86c696
No related branches found
No related tags found
No related merge requests found
......@@ -397,7 +397,7 @@ public class RunMainController extends MainLayoutBasicController implements Gene
}
protected void updateNextPrevious() {
if(nextLink == null || previousLink == null || luTree == null) {
if (luTree == null) {
return;
}
......@@ -413,8 +413,13 @@ public class RunMainController extends MainLayoutBasicController implements Gene
hasPrevious = index > 0;
hasNext = index >= 0 && index+1 < flatTree.size();
}
previousLink.setEnabled(hasPrevious);
nextLink.setEnabled(hasNext);
if (previousLink != null) {
previousLink.setEnabled(hasPrevious);
}
if (nextLink != null) {
nextLink.setEnabled(hasNext);
}
if (paginationCtrl != null) {
paginationCtrl.updateNextPreviousUI(hasPrevious, hasNext);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment