Remove tabbed layout in favour of current Lesion Tracker design (OHIF-49)

This commit is contained in:
Erik Ziegler committed 2016-07-23 20:11:01 +02:00
1 parent 8b364ce9d0
commit 82e374b1e3
48 files changed
+371 -511

No files matched your search

@@ -6,7 +6,7 @@ ViewerData = Session.get('ViewerData') || {};
const worklistContentId = 'worklistTab';
const viewerContentId = 'viewerTab';
Template.lesionTracker.onRendered(function() {
Template.lesionTracker.onRendered(() => {
const templateData = Template.currentData();
if (templateData && templateData.studyInstanceUid) {
const studyInstanceUid = templateData.studyInstanceUid;
@@ -19,12 +19,10 @@ Template.lesionTracker.onRendered(function() {
// TODO: Fix this it seems to be forcing two switches
switchToTab(contentId);
}
Meteor.subscribe('hangingprotocols');
});
Template.lesionTracker.events({
'click .js-toggle-studyList': function() {
'click .js-toggle-studyList'() {
const contentId = Session.get('activeContentId');
if (contentId !== worklistContentId) {
@@ -38,7 +36,7 @@ Template.lesionTracker.events({
Session.set('defaultSignInMessage', 'Tumor tracking in your browser.');
Template.lesionTracker.helpers({
studyListToggleText: function() {
studyListToggleText() {
const contentId = Session.get('activeContentId');
// If the Viewer has not been opened yet, 'Back to viewer' should
@@ -54,7 +52,7 @@ Template.lesionTracker.helpers({
return 'Study list';
}
},
onStudyList: function() {
onStudyList() {
return (Session.get('activeContentId') === 'worklistTab');
}
});
@@ -72,14 +72,3 @@ img.logoImage
color: $textSecondaryColor
font-size: 30px
font-weight: 200
// Override Viewerbase's borders
#imageViewerViewports .viewportContainer
border: none !important
outline: 0 !important // Prevent blue outline in Chrome
&:hover
&.active
&:hover.active
border: none !important
outline: 0 !important // Prevent blue outline in Chrome