Skip to content

Commit

Permalink
Add privacy policy link to about screen (#2954)
Browse files Browse the repository at this point in the history
  • Loading branch information
mpbw2 committed Jan 24, 2024
1 parent 8cc2277 commit dcba638
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 8 deletions.
4 changes: 2 additions & 2 deletions src/App/Pages/Settings/AboutSettingsPage.xaml
Expand Up @@ -31,8 +31,8 @@
<BoxView StyleClass="box-row-separator" />

<controls:ExternalLinkItemView
Title="{u:I18n ContactBitwardenSupport}"
GoToLinkCommand="{Binding ContactBitwardenSupportCommand}"
Title="{u:I18n PrivacyPolicy}"
GoToLinkCommand="{Binding GoToPrivacyPolicyCommand}"
StyleClass="settings-external-link-item"
HorizontalOptions="FillAndExpand" />
<BoxView StyleClass="box-row-separator" />
Expand Down
10 changes: 5 additions & 5 deletions src/App/Pages/Settings/AboutSettingsPageViewModel.cs
Expand Up @@ -36,10 +36,10 @@ public AboutSettingsPageViewModel()
AppResources.ContinueToHelpCenter,
ExternalLinksConstants.HELP_CENTER));

ContactBitwardenSupportCommand = CreateDefaultAsyncCommnad(
() => LaunchUriAsync(AppResources.ContactSupportDescriptionLong,
AppResources.ContinueToContactSupport,
ExternalLinksConstants.CONTACT_SUPPORT));
GoToPrivacyPolicyCommand = CreateDefaultAsyncCommnad(
() => LaunchUriAsync(AppResources.PrivacyPolicyDescriptionLong,
AppResources.ContinueToPrivacyPolicy,
ExternalLinksConstants.PRIVACY_POLICY));

GoToWebVaultCommand = CreateDefaultAsyncCommnad(
() => LaunchUriAsync(AppResources.ExploreMoreFeaturesOfYourBitwardenAccountOnTheWebApp,
Expand Down Expand Up @@ -82,7 +82,7 @@ public string AppInfo

public AsyncCommand ToggleSubmitCrashLogsCommand { get; }
public ICommand GoToHelpCenterCommand { get; }
public ICommand ContactBitwardenSupportCommand { get; }
public ICommand GoToPrivacyPolicyCommand { get; }
public ICommand GoToWebVaultCommand { get; }
public ICommand GoToLearnAboutOrgsCommand { get; }
public ICommand RateTheAppCommand { get; }
Expand Down
18 changes: 18 additions & 0 deletions src/App/Resources/AppResources.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions src/App/Resources/AppResources.resx
Expand Up @@ -2821,6 +2821,9 @@ Do you want to switch to this account?</value>
<data name="ContinueToContactSupport" xml:space="preserve">
<value>Continue to contact support?</value>
</data>
<data name="ContinueToPrivacyPolicy" xml:space="preserve">
<value>Continue to privacy policy?</value>
</data>
<data name="ContinueToAppStore" xml:space="preserve">
<value>Continue to app store?</value>
</data>
Expand All @@ -2840,6 +2843,9 @@ Do you want to switch to this account?</value>
<data name="ContactSupportDescriptionLong" xml:space="preserve">
<value>Can’t find what you are looking for? Reach out to Bitwarden support on bitwarden.com.</value>
</data>
<data name="PrivacyPolicyDescriptionLong" xml:space="preserve">
<value>Check out our privacy policy on bitwarden.com.</value>
</data>
<data name="ExploreMoreFeaturesOfYourBitwardenAccountOnTheWebApp" xml:space="preserve">
<value>Explore more features of your Bitwarden account on the web app.</value>
</data>
Expand Down
2 changes: 1 addition & 1 deletion src/Core/ExternalLinksConstants.cs
Expand Up @@ -6,7 +6,7 @@ public static class ExternalLinksConstants
public const string HELP_ABOUT_ORGANIZATIONS = "https://bitwarden.com/help/about-organizations/";
public const string HELP_FINGERPRINT_PHRASE = "https://bitwarden.com/help/fingerprint-phrase/";

public const string CONTACT_SUPPORT = "https://bitwarden.com/contact/";
public const string PRIVACY_POLICY = "https://bitwarden.com/privacy/";

/// <summary>
/// Link to go to settings website. Requires to pass website URL as parameter.
Expand Down

0 comments on commit dcba638

Please sign in to comment.