Removing contextMenu templates and title from tabs
This commit is contained in:
1 parent
485f82f64c
commit
0cf4dbf13f
16 files changed
+27
-77
No files matched your search
@@ -1,2 +0,0 @@
|
||||
import './studyContextMenu.html';
|
||||
import './studyContextMenu.js';
|
||||
@@ -1,12 +0,0 @@
|
||||
<template name="studyContextMenu">
|
||||
{{#dropdownForm}}
|
||||
<li><a id="viewSeriesDetails" type="button"
|
||||
title="View Series Details"
|
||||
>View Series Details</a></li>
|
||||
<li class="disabled"><a class="disabled">Anonymize</a></li>
|
||||
<li class="disabled"><a class="disabled">Send</a></li>
|
||||
<li class="divider" role="separator"></li>
|
||||
<li class="disabled"><a class="disabled">Delete</a></li>
|
||||
<li><a id="exportSelectedStudies" title="Export Selected Studies">Export</a></li>
|
||||
{{/dropdownForm}}
|
||||
</template>
|
||||
@@ -1,23 +0,0 @@
|
||||
import { Meteor } from 'meteor/meteor';
|
||||
import { OHIF } from 'meteor/ohif:core';
|
||||
|
||||
Meteor.startup(() => {
|
||||
OHIF.studylist.dropdown.setItems([{
|
||||
action: OHIF.studylist.viewSeriesDetails,
|
||||
text: 'View Series Details'
|
||||
}, {
|
||||
text: 'Anonymize',
|
||||
disabled: true
|
||||
}, {
|
||||
text: 'Send',
|
||||
disabled: true,
|
||||
separatorAfter: true
|
||||
}, {
|
||||
text: 'Delete',
|
||||
disabled: true
|
||||
}, {
|
||||
action: OHIF.studylist.exportSelectedStudies,
|
||||
text: 'Export',
|
||||
title: 'Export Selected Studies'
|
||||
}]);
|
||||
});
|
||||
@@ -10,7 +10,4 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{{#each templateName in additionalTemplates}}
|
||||
{{>Template.dynamic template=templateName}}
|
||||
{{/each}}
|
||||
</template>
|
||||
@@ -31,7 +31,7 @@ Template.studylist.onRendered(() => {
|
||||
const instance = Template.instance();
|
||||
if (instance.data && instance.data.studyInstanceUid) {
|
||||
const studyInstanceUid = instance.data.studyInstanceUid;
|
||||
openNewTab(studyInstanceUid, studyInstanceUid);
|
||||
openNewTab(studyInstanceUid);
|
||||
} else {
|
||||
// If there is a tab set as active in the Session,
|
||||
// switch to that now.
|
||||
|
||||
@@ -1,22 +1,23 @@
|
||||
import { Random } from 'meteor/random';
|
||||
import { OHIF } from 'meteor/ohif:core';
|
||||
|
||||
/**
|
||||
* Opens a new tab in the tabbed studylist environment using
|
||||
* a given study and new tab title.
|
||||
*
|
||||
* @param studyInstanceUid The UID of the Study to be opened
|
||||
* @param title The title to be used for the tab heading
|
||||
*/
|
||||
openNewTab = function(studyInstanceUid, title) {
|
||||
console.log('openNewTab');
|
||||
|
||||
const openNewTab = studyInstanceUid => {
|
||||
OHIF.log.info('openNewTab');
|
||||
|
||||
// Generate a unique ID to represent this tab
|
||||
// We can't just use the Mongo entry ID because
|
||||
// then it will change after hot-reloading.
|
||||
var contentId = Random.id();
|
||||
const contentId = Random.id();
|
||||
|
||||
// Update the ViewerData global object
|
||||
ViewerData = window.ViewerData || ViewerData;
|
||||
ViewerData[contentId] = {
|
||||
title: title,
|
||||
contentId: contentId,
|
||||
studyInstanceUids: [studyInstanceUid]
|
||||
};
|
||||
|
||||
@@ -22,9 +22,7 @@ StudyList.callbacks.dblClickOnStudy = dblClickOnStudy;
|
||||
StudyList.callbacks.middleClickOnStudy = dblClickOnStudy;
|
||||
|
||||
function dblClickOnStudy(data) {
|
||||
// Use the formatPN template helper to clean up the patient name
|
||||
var title = Viewerbase.helpers.formatPN(data.patientName);
|
||||
openNewTab(data.studyInstanceUid, title);
|
||||
openNewTab(data.studyInstanceUid);
|
||||
}
|
||||
|
||||
let currentServerChangeHandlerFirstRun = true;
|
||||
|
||||
Reference in new issue
Block a user