From 56824b9142993767112a53e07f6bf99ee606bd89 Mon Sep 17 00:00:00 2001 From: Danny Brown Date: Tue, 22 Sep 2020 21:41:42 -0400 Subject: [PATCH] fix: button colors quick (#2056) * add _redirects file for when output target is netlify * temporarily swap dialog primary/secondary button types for dialogs --- extensions/cornerstone/src/callInputDialog.js | 4 ++-- .../src/_shared/createReportDialogPrompt.js | 4 ++-- .../src/panels/PanelMeasurementTableTracking/index.js | 5 +++-- platform/viewer/public/_redirects | 6 ++++++ 4 files changed, 13 insertions(+), 6 deletions(-) create mode 100644 platform/viewer/public/_redirects diff --git a/extensions/cornerstone/src/callInputDialog.js b/extensions/cornerstone/src/callInputDialog.js index a996f18c6..acdb2bdf0 100644 --- a/extensions/cornerstone/src/callInputDialog.js +++ b/extensions/cornerstone/src/callInputDialog.js @@ -48,8 +48,8 @@ function callInputDialog( noCloseButton: true, onClose: () => UIDialogService.dismiss({ id: dialogId }), actions: [ - { id: 'cancel', text: 'Cancel', type: 'secondary' }, - { id: 'save', text: 'Save', type: 'primary' }, + { id: 'cancel', text: 'Cancel', type: 'primary' }, + { id: 'save', text: 'Save', type: 'secondary' }, ], onSubmit: onSubmitHandler, body: ({ value, setValue }) => { diff --git a/extensions/measurement-tracking/src/_shared/createReportDialogPrompt.js b/extensions/measurement-tracking/src/_shared/createReportDialogPrompt.js index b0c13a666..cdad87953 100644 --- a/extensions/measurement-tracking/src/_shared/createReportDialogPrompt.js +++ b/extensions/measurement-tracking/src/_shared/createReportDialogPrompt.js @@ -43,8 +43,8 @@ export default function createReportDialogPrompt(UIDialogService) { noCloseButton: true, onClose: _handleClose, actions: [ - { id: 'cancel', text: 'Cancel', type: 'secondary' }, - { id: 'save', text: 'Save', type: 'primary' }, + { id: 'cancel', text: 'Cancel', type: 'primary' }, + { id: 'save', text: 'Save', type: 'secondary' }, ], // TODO: Should be on button press... onSubmit: _handleFormSubmit, diff --git a/extensions/measurement-tracking/src/panels/PanelMeasurementTableTracking/index.js b/extensions/measurement-tracking/src/panels/PanelMeasurementTableTracking/index.js index a1f7cfbf9..297049f2f 100644 --- a/extensions/measurement-tracking/src/panels/PanelMeasurementTableTracking/index.js +++ b/extensions/measurement-tracking/src/panels/PanelMeasurementTableTracking/index.js @@ -215,8 +215,9 @@ function PanelMeasurementTableTracking({ servicesManager, extensionManager }) { ); }, actions: [ - { id: 'cancel', text: 'Cancel', type: 'secondary' }, - { id: 'save', text: 'Save', type: 'primary' }, + // temp: swap button types until colors are updated + { id: 'cancel', text: 'Cancel', type: 'primary' }, + { id: 'save', text: 'Save', type: 'secondary' }, ], onSubmit: onSubmitHandler, }, diff --git a/platform/viewer/public/_redirects b/platform/viewer/public/_redirects new file mode 100644 index 000000000..9730bd0d3 --- /dev/null +++ b/platform/viewer/public/_redirects @@ -0,0 +1,6 @@ +# Specific to our deploy-preview +# Our docs are published using CircleCI + GitBook +# Confgure redirects using netlify.toml + +# Spa +/* /index.html 200