From bd4a275558ed95e4590dde43a9783c9847f77d6c Mon Sep 17 00:00:00 2001 From: Matt Gibson Date: Thu, 24 Jun 2021 15:33:19 -0400 Subject: [PATCH] Revert "Redefine cipher "share" to "move to organization" (#1433)" (#1440) This reverts commit 2003ac9d2c82e87060b8bb2f9207386890ac1552. --- .../CipherViewCell/CipherViewCell.xaml | 2 +- .../SettingsPage/SettingsPage.xaml.cs | 2 +- .../SettingsPage/SettingsPageViewModel.cs | 6 +-- src/App/Pages/Vault/AddEditPage.xaml | 2 +- src/App/Pages/Vault/AddEditPage.xaml.cs | 4 +- src/App/Pages/Vault/SharePage.xaml | 4 +- src/App/Pages/Vault/SharePageViewModel.cs | 6 +-- src/App/Pages/Vault/ViewPage.xaml | 2 +- src/App/Pages/Vault/ViewPage.xaml.cs | 4 +- src/App/Resources/AppResources.Designer.cs | 54 +++++++------------ src/App/Resources/AppResources.resx | 22 +++----- 11 files changed, 39 insertions(+), 69 deletions(-) diff --git a/src/App/Controls/CipherViewCell/CipherViewCell.xaml b/src/App/Controls/CipherViewCell/CipherViewCell.xaml index e7ac7ab5d..e49b8aea2 100644 --- a/src/App/Controls/CipherViewCell/CipherViewCell.xaml +++ b/src/App/Controls/CipherViewCell/CipherViewCell.xaml @@ -80,7 +80,7 @@ VerticalOptions="Center" StyleClass="list-title-icon" Margin="5, 0, 0, 0" - Text="" + Text="" IsVisible="{Binding Cipher.Shared, Mode=OneTime}" AutomationProperties.IsInAccessibleTree="True" AutomationProperties.Name="{u:I18n Shared}" /> diff --git a/src/App/Pages/Settings/SettingsPage/SettingsPage.xaml.cs b/src/App/Pages/Settings/SettingsPage/SettingsPage.xaml.cs index d49ab0971..44c1b6774 100644 --- a/src/App/Pages/Settings/SettingsPage/SettingsPage.xaml.cs +++ b/src/App/Pages/Settings/SettingsPage/SettingsPage.xaml.cs @@ -103,7 +103,7 @@ namespace Bit.App.Pages { await Navigation.PushModalAsync(new NavigationPage(new ExportVaultPage())); } - else if (item.Name == AppResources.LearnOrg) + else if (item.Name == AppResources.ShareVault) { await _vm.ShareAsync(); } diff --git a/src/App/Pages/Settings/SettingsPage/SettingsPageViewModel.cs b/src/App/Pages/Settings/SettingsPage/SettingsPageViewModel.cs index 02de4daae..958e2bd91 100644 --- a/src/App/Pages/Settings/SettingsPage/SettingsPageViewModel.cs +++ b/src/App/Pages/Settings/SettingsPage/SettingsPageViewModel.cs @@ -150,8 +150,8 @@ namespace Bit.App.Pages public async Task ShareAsync() { - var confirmed = await _platformUtilsService.ShowDialogAsync(AppResources.LearnOrgConfirmation, - AppResources.LearnOrg, AppResources.Yes, AppResources.Cancel); + var confirmed = await _platformUtilsService.ShowDialogAsync(AppResources.ShareVaultConfirmation, + AppResources.ShareVault, AppResources.Yes, AppResources.Cancel); if (confirmed) { _platformUtilsService.LaunchUri("https://help.bitwarden.com/article/what-is-an-organization/"); @@ -387,13 +387,13 @@ namespace Bit.App.Pages { new SettingsPageListItem { Name = AppResources.ImportItems }, new SettingsPageListItem { Name = AppResources.ExportVault }, + new SettingsPageListItem { Name = AppResources.ShareVault }, new SettingsPageListItem { Name = AppResources.WebVault } }; var otherItems = new List { new SettingsPageListItem { Name = AppResources.Options }, new SettingsPageListItem { Name = AppResources.About }, - new SettingsPageListItem { Name = AppResources.LearnOrg }, new SettingsPageListItem { Name = AppResources.HelpAndFeedback }, new SettingsPageListItem { Name = AppResources.RateTheApp } }; diff --git a/src/App/Pages/Vault/AddEditPage.xaml b/src/App/Pages/Vault/AddEditPage.xaml index e0d5782f1..cfc246f08 100644 --- a/src/App/Pages/Vault/AddEditPage.xaml +++ b/src/App/Pages/Vault/AddEditPage.xaml @@ -30,7 +30,7 @@ x:Name="_collectionsItem" Clicked="Collections_Clicked" Order="Secondary" /> - { AppResources.Attachments }; if (_vm.EditMode) { - options.Add(_vm.Cipher.OrganizationId == null ? AppResources.MoveToOrganization : AppResources.Collections); + options.Add(_vm.Cipher.OrganizationId == null ? AppResources.Share : AppResources.Collections); } var selection = await DisplayActionSheet(AppResources.Options, AppResources.Cancel, (_vm.EditMode && !_vm.CloneMode) ? AppResources.Delete : null, options.ToArray()); @@ -293,7 +293,7 @@ namespace Bit.App.Pages var page = new CollectionsPage(_vm.CipherId); await Navigation.PushModalAsync(new Xamarin.Forms.NavigationPage(page)); } - else if (selection == AppResources.MoveToOrganization) + else if (selection == AppResources.Share) { var page = new SharePage(_vm.CipherId); await Navigation.PushModalAsync(new Xamarin.Forms.NavigationPage(page)); diff --git a/src/App/Pages/Vault/SharePage.xaml b/src/App/Pages/Vault/SharePage.xaml index 3c9486db3..ad84a2a7b 100644 --- a/src/App/Pages/Vault/SharePage.xaml +++ b/src/App/Pages/Vault/SharePage.xaml @@ -15,7 +15,7 @@ - + @@ -46,7 +46,7 @@ StyleClass="box-value" />