OHIF-129: Enabling CinePlay button only when active viewport has more than 1 image in its stack; Fixed some errors when CinePlay Dialog is open and stopped and layout changes.

This commit is contained in:
Eloízio Salgado committed 2016-11-07 12:01:03 -02:00
1 parent 12862aec51
commit a7ba6b49fe
11 files changed
+65 -13

No files matched your search

@@ -3,7 +3,7 @@
{{>UI.dynamic template=this.buttonTemplateName data=this}}
{{else}}
<div id="{{this.id}}"
class="toolbarSectionButton rp-x-1 {{this.classes}} {{activeClass}} {{#if this.disabled}}disabled{{/if}}"
class="toolbarSectionButton rp-x-1 {{this.classes}} {{activeClass}} {{#if this.disabled}}disabled{{/if}} {{#if this.disableFunction}}{{#if (disableButton)}}disabled{{/if}}{{/if}}"
title="{{this.title}}">
<div class="svgContainer">
{{#if this.svgLink}}
@@ -10,6 +10,9 @@ Template.toolbarSectionButton.helpers({
// Return the active class
return 'active';
}
},
disableButton() {
return this.disableFunction();
}
});