Add exit mpr action

This commit is contained in:
igoroctaviano committed 2021-01-20 20:59:03 -03:00
1 parent f07f21117d
commit 8038009afd
2 files changed
+13 -10

No files matched your search

+8 -9
View File
@@ -363,7 +363,7 @@ class OHIFVTKViewport extends Component {
const { UINotificationService } = this.props.servicesManager.services;
if (this.props.viewportIndex === 0) {
const message = error.message.includes('buffer')
? 'Buffer allocation limit exceeded'
? 'Dataset is too big to display in MPR'
: error.message;
console.error(errorTitle, error);
UINotificationService.show({
@@ -371,15 +371,14 @@ class OHIFVTKViewport extends Component {
message,
type: 'error',
autoClose: false,
/* action: {
label: 'Download',
onClick: () => {
const listOfUIDs = [window.location.href.split('/').pop()];
this.props.commandsManager.runCommand('downloadAndZip', {
listOfUIDs,
});
action: {
label: 'Exit 2D MPR',
onClick: ({ close }) => {
// context: 'ACTIVE_VIEWPORT::VTK',
close();
this.props.commandsManager.runCommand('setCornerstoneLayout');
},
}, */
},
});
}
this.setState({ isLoaded: true });