Skip to content

Commit

Permalink
chore(efb): Move Auto-Simbrief Import to 3rd party (flybywiresim#8548)
Browse files Browse the repository at this point in the history
move auto simbrief import to 3rd party

Co-authored-by: Aurora Takemi <[email protected]>
  • Loading branch information
alepouna and alepouna authored Apr 1, 2024
1 parent dfd041a commit bbdb7d2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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');

Expand Down Expand Up @@ -187,10 +185,6 @@ export const AtsuAocPage = () => {
</SelectGroup>
</SettingItem>

<SettingItem name={t('Settings.AtsuAoc.AutomaticallyImportSimBriefData')}>
<Toggle value={autoSimbriefImport === 'ENABLED'} onToggle={(toggleValue) => setAutoSimbriefImport(toggleValue ? 'ENABLED' : 'DISABLED')} />
</SettingItem>

<SettingItem name={t('Settings.AtsuAoc.ErrorReporting')}>
<Toggle value={sentryEnabled === SentryConsentState.Given} onToggle={(toggleValue) => handleSentryToggle(toggleValue)} />
</SettingItem>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<any> => {
const SIMBRIEF_URL = 'https://www.simbrief.com/api/xml.fetcher.php?json=1';
Expand Down Expand Up @@ -153,6 +154,10 @@ export const ThirdPartyOptionsPage = () => {
</SettingItem>
</TooltipWrapper>

<SettingItem name={t('Settings.AtsuAoc.AutomaticallyImportSimBriefData')}>
<Toggle value={autoSimbriefImport === 'ENABLED'} onToggle={(toggleValue) => setAutoSimbriefImport(toggleValue ? 'ENABLED' : 'DISABLED')} />
</SettingItem>

<SettingItem name={t('Settings.ThirdPartyOptions.GsxFuelEnabled')}>
<Toggle
value={gsxFuelSyncEnabled === 1}
Expand Down

0 comments on commit bbdb7d2

Please sign in to comment.