From 46d99b02b1c992c7b8dde2150217ed9ce326b7a5 Mon Sep 17 00:00:00 2001 From: sct Date: Thu, 5 Nov 2020 10:53:56 +0000 Subject: [PATCH] fix(frontend): fix modal design and rename some text for adding servers --- src/components/Common/Modal/index.tsx | 6 +++++- src/components/Settings/RadarrModal.tsx | 2 +- src/components/Settings/SettingsServices.tsx | 4 ++-- src/components/Settings/SonarrModal.tsx | 2 +- 4 files changed, 9 insertions(+), 5 deletions(-) diff --git a/src/components/Common/Modal/index.tsx b/src/components/Common/Modal/index.tsx index a5427c5f7..bca4ac5a5 100644 --- a/src/components/Common/Modal/index.tsx +++ b/src/components/Common/Modal/index.tsx @@ -116,7 +116,11 @@ const Modal: React.FC = ({ {iconSvg} )} -
+
{title && (

= ({ ? 'Saving...' : !!radarr ? 'Save Changes' - : 'Create Instance' + : 'Add Server' } secondaryButtonType="warning" secondaryText={isTesting ? 'Testing...' : 'Test'} diff --git a/src/components/Settings/SettingsServices.tsx b/src/components/Settings/SettingsServices.tsx index 58e6e3fd1..0bbac1e3b 100644 --- a/src/components/Settings/SettingsServices.tsx +++ b/src/components/Settings/SettingsServices.tsx @@ -252,7 +252,7 @@ const SettingsServices: React.FC = () => { clipRule="evenodd" /> - Add New Radarr Instance + Add Radarr Server

@@ -314,7 +314,7 @@ const SettingsServices: React.FC = () => { clipRule="evenodd" /> - Add New Sonarr Instance + Add Sonarr Server
diff --git a/src/components/Settings/SonarrModal.tsx b/src/components/Settings/SonarrModal.tsx index 48b9c010c..cc4a4f4a5 100644 --- a/src/components/Settings/SonarrModal.tsx +++ b/src/components/Settings/SonarrModal.tsx @@ -186,7 +186,7 @@ const SonarrModal: React.FC = ({ ? 'Saving...' : !!sonarr ? 'Save Changes' - : 'Create Instance' + : 'Add Server' } secondaryButtonType="warning" secondaryText={isTesting ? 'Testing...' : 'Test'}