From bbdb7d2d5d71c34417e7dc5638f7f6c3673e03fc Mon Sep 17 00:00:00 2001
From: Aurora Takemi <98479040+alepouna@users.noreply.github.com>
Date: Mon, 1 Apr 2024 17:39:34 +0300
Subject: [PATCH] chore(efb): Move Auto-Simbrief Import to 3rd party (#8548)
move auto simbrief import to 3rd party
Co-authored-by: Aurora Takemi <98479040+auroraisluna@users.noreply.github.com>
---
.../instruments/src/EFB/Settings/Pages/AtsuAocPage.tsx | 6 ------
.../src/EFB/Settings/Pages/ThirdPartyOptionsPage.tsx | 5 +++++
2 files changed, 5 insertions(+), 6 deletions(-)
diff --git a/fbw-common/src/systems/instruments/src/EFB/Settings/Pages/AtsuAocPage.tsx b/fbw-common/src/systems/instruments/src/EFB/Settings/Pages/AtsuAocPage.tsx
index e8bb62fa9f2..6c48c7d4a3f 100644
--- a/fbw-common/src/systems/instruments/src/EFB/Settings/Pages/AtsuAocPage.tsx
+++ b/fbw-common/src/systems/instruments/src/EFB/Settings/Pages/AtsuAocPage.tsx
@@ -22,8 +22,6 @@ export const AtsuAocPage = () => {
const [tafSource, setTafSource] = usePersistentProperty('CONFIG_TAF_SRC', 'NOAA');
const [telexEnabled, setTelexEnabled] = usePersistentProperty('CONFIG_ONLINE_FEATURES_STATUS', 'DISABLED');
- const [autoSimbriefImport, setAutoSimbriefImport] = usePersistentProperty('CONFIG_AUTO_SIMBRIEF_IMPORT', 'DISABLED');
-
const [hoppieEnabled, setHoppieEnabled] = usePersistentProperty('CONFIG_HOPPIE_ENABLED', 'DISABLED');
const [hoppieUserId, setHoppieUserId] = usePersistentProperty('CONFIG_HOPPIE_USERID');
@@ -187,10 +185,6 @@ export const AtsuAocPage = () => {
-
- setAutoSimbriefImport(toggleValue ? 'ENABLED' : 'DISABLED')} />
-
-
handleSentryToggle(toggleValue)} />
diff --git a/fbw-common/src/systems/instruments/src/EFB/Settings/Pages/ThirdPartyOptionsPage.tsx b/fbw-common/src/systems/instruments/src/EFB/Settings/Pages/ThirdPartyOptionsPage.tsx
index e75dc3b878c..32ad4ef61fc 100644
--- a/fbw-common/src/systems/instruments/src/EFB/Settings/Pages/ThirdPartyOptionsPage.tsx
+++ b/fbw-common/src/systems/instruments/src/EFB/Settings/Pages/ThirdPartyOptionsPage.tsx
@@ -26,6 +26,7 @@ export const ThirdPartyOptionsPage = () => {
const [overrideSimbriefUserID, setOverrideSimbriefUserID] = usePersistentProperty('CONFIG_OVERRIDE_SIMBRIEF_USERID');
const [overrideSimbriefDisplay, setOverrideSimbriefDisplay] = useState(overrideSimbriefUserID);
+ const [autoSimbriefImport, setAutoSimbriefImport] = usePersistentProperty('CONFIG_AUTO_SIMBRIEF_IMPORT', 'DISABLED');
const getSimbriefUserData = async (value: string): Promise => {
const SIMBRIEF_URL = 'https://www.simbrief.com/api/xml.fetcher.php?json=1';
@@ -153,6 +154,10 @@ export const ThirdPartyOptionsPage = () => {
+
+ setAutoSimbriefImport(toggleValue ? 'ENABLED' : 'DISABLED')} />
+
+