Skip to content

Commit

Permalink
Change loc keys for userid validation
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjozork committed Aug 5, 2023
1 parent 44a064d commit 7685e43
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions fbw-a32nx/src/localization/flypad/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -595,6 +595,8 @@
}
},
"OverrideSimBriefUserID": "Override SimBrief User ID",
"YourSimBriefPilotIdHasBeenValidatedAndUpdatedTo": "The override SimBrief PilotID has been validated and updated to",
"PleaseCheckThatYouHaveCorrectlyEnteredYourSimBriefUsernameOrPilotId": "Please check that you have correctly entered your SimBrief username or pilot ID.",
"GsxFuelEnabled": "GSX Fueling Synchronization",
"GsxPayloadEnabled": "GSX Payload Synchronization",
"Title": "3rd Party Options"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,13 +76,13 @@ export const ThirdPartyOptionsPage = () => {

const handleUsernameInput = (value: string) => {
getSimbriefUserId(value).then((response) => {
toast.success(`${t('Settings.AtsuAoc.YourSimBriefPilotIdHasBeenValidatedAndUpdatedTo')} ${response}`);
toast.success(`${t('Settings.ThirdPartyOptions.YourSimBriefPilotIdHasBeenValidatedAndUpdatedTo')} ${response}`);

setOverrideSimbriefUserID(response);
setOverrideSimbriefDisplay(response);
}).catch(() => {
setOverrideSimbriefDisplay(overrideSimbriefUserID);
toast.error(t('Settings.AtsuAoc.PleaseCheckThatYouHaveCorrectlyEnteredYourSimbBriefUsernameOrPilotId'));
toast.error(t('Settings.ThirdPartyOptions.PleaseCheckThatYouHaveCorrectlyEnteredYourSimBriefUsernameOrPilotId'));
});
};

Expand Down

0 comments on commit 7685e43

Please sign in to comment.