Clear showDownloadViewport command errors

This commit is contained in:
dannyrb 2020-06-14 23:43:09 -04:00
parent 8c1a844558
commit e104fb9fbd

View File

@ -148,13 +148,13 @@ const commandsModule = ({ servicesManager }) => {
const enabledElement = getEnabledElement(viewports.activeViewportIndex);
return enabledElement;
},
showDownloadViewportModal: ({ title, viewports }) => {
const activeViewportIndex = viewports.activeViewportIndex;
showDownloadViewportModal: () => {
const activeViewportIndex = 1; // viewports.activeViewportIndex;
const { UIModalService } = servicesManager.services;
if (UIModalService) {
UIModalService.show({
content: CornerstoneViewportDownloadForm,
title,
title: 'Download High Quality Image',
contentProps: {
activeViewportIndex,
onClose: UIModalService.hide,