Add Next/Previous Hanging Protcol stage buttons (only works with MG for now)
This commit is contained in:
1 parent
bfe6b80e27
commit
487ebf9541
13 files changed
+147
-6
No files matched your search
+11
@@ -0,0 +1,11 @@
|
||||
Template.hangingProtocolButtons.helpers({
|
||||
'isNextAvailable': function() {
|
||||
var presentationGroup = Session.get('WindowManagerPresentationGroup');
|
||||
var numPresentationGroups = WindowManager.getNumPresentationGroups();
|
||||
return presentationGroup < numPresentationGroups;
|
||||
},
|
||||
'isPreviousAvailable': function() {
|
||||
var presentationGroup = Session.get('WindowManagerPresentationGroup');
|
||||
return presentationGroup > 1;
|
||||
}
|
||||
});
|
||||
Reference in new issue
Block a user