From 56093a9d6884aef4194988a7a74ebaf4108414ef Mon Sep 17 00:00:00 2001 From: Bruno Alves de Faria Date: Tue, 16 Jan 2018 18:41:08 -0200 Subject: [PATCH] Converting the modal to the new structure and styling it --- .../toolbarSection/toolbarSection.js | 2 +- .../client/components/viewer/viewer.html | 1 - .../client/components/viewer/viewer.html | 1 - .../components/bootstrap/dialog/form.html | 2 +- .../ohif-design/styles/common/global.styl | 5 + .../viewer/downloadDialog/downloadDialog.html | 58 +++- .../viewer/downloadDialog/downloadDialog.js | 306 ++++++++++++------ .../viewer/downloadDialog/downloadDialog.styl | 15 +- .../client/lib/viewportUtils.js | 6 +- 9 files changed, 286 insertions(+), 110 deletions(-) diff --git a/LesionTracker/client/components/toolbarSection/toolbarSection.js b/LesionTracker/client/components/toolbarSection/toolbarSection.js index d6a5a05b5..56edee0f0 100644 --- a/LesionTracker/client/components/toolbarSection/toolbarSection.js +++ b/LesionTracker/client/components/toolbarSection/toolbarSection.js @@ -129,7 +129,7 @@ Template.toolbarSection.helpers({ title: 'Download', classes: 'imageViewerCommand', iconClasses: 'fa fa-camera', - active: () => $('#downloadDialog').is(':visible') + active: () => $('#imageDownloadDialog').is(':visible') }); extraTools.push({ diff --git a/LesionTracker/client/components/viewer/viewer.html b/LesionTracker/client/components/viewer/viewer.html index b058d11c3..6c66556ef 100644 --- a/LesionTracker/client/components/viewer/viewer.html +++ b/LesionTracker/client/components/viewer/viewer.html @@ -3,7 +3,6 @@ {{#if and Template.subscriptionsReady dataSourcesReady}} {{>confirmDeleteDialog}} {{>measurementTableHUD (clone this)}} - {{>downloadDialog}} {{>cineDialog}} {{/if}} diff --git a/OHIFViewer/client/components/viewer/viewer.html b/OHIFViewer/client/components/viewer/viewer.html index 014a4632b..38c84ba1b 100644 --- a/OHIFViewer/client/components/viewer/viewer.html +++ b/OHIFViewer/client/components/viewer/viewer.html @@ -2,7 +2,6 @@ {{#if and Template.subscriptionsReady}}
{{>cineDialog}} - {{>downloadDialog}} {{>layoutChooser}} {{>annotationDialogs}} diff --git a/Packages/ohif-core/client/components/bootstrap/dialog/form.html b/Packages/ohif-core/client/components/bootstrap/dialog/form.html index cfcade9f5..40b039fd6 100644 --- a/Packages/ohif-core/client/components/bootstrap/dialog/form.html +++ b/Packages/ohif-core/client/components/bootstrap/dialog/form.html @@ -1,7 +1,7 @@