AWV-3: Adding current state to display set navigation buttons on CINE dialog
This commit is contained in:
1 parent
6b86b8d2dc
commit
36da38283a
2 files changed
+7
-2
No files matched your search
@@ -4,10 +4,10 @@
|
||||
<h5>CINE Controls</h5>
|
||||
<div class="cine-navigation">
|
||||
<div class="btn-group">
|
||||
{{#button action='displaySetPrevious' title='Previous display set'}}
|
||||
{{#button disabled=(displaySetDisabled false) action='displaySetPrevious' title='Previous display set'}}
|
||||
<i class="fa fa-toggle-up"></i>
|
||||
{{/button}}
|
||||
{{#button action='displaySetNext' title='Next display set'}}
|
||||
{{#button disabled=(displaySetDisabled true) action='displaySetNext' title='Next display set'}}
|
||||
<i class="fa fa-toggle-down"></i>
|
||||
{{/button}}
|
||||
</div>
|
||||
|
||||
@@ -134,5 +134,10 @@ Template.cineDialog.helpers({
|
||||
framerate() {
|
||||
Session.get('UpdateCINE');
|
||||
return OHIF.viewer.cine.framesPerSecond.toFixed(1);
|
||||
},
|
||||
|
||||
displaySetDisabled(isNext) {
|
||||
Session.get('LayoutManagerUpdated');
|
||||
return !OHIF.viewer.canMoveDisplaySets(isNext) ? 'disabled' : '';
|
||||
}
|
||||
});
|
||||
Reference in new issue
Block a user