diff --git a/src/App/Pages/Vault/CipherAddEditPage.xaml b/src/App/Pages/Vault/CipherAddEditPage.xaml index 7785457b0..0ad114b1f 100644 --- a/src/App/Pages/Vault/CipherAddEditPage.xaml +++ b/src/App/Pages/Vault/CipherAddEditPage.xaml @@ -292,7 +292,7 @@ StyleClass="box-row-button, box-row-button-platform" Text="{Binding Source={x:Static core:BitwardenIcons.Clone}}" Command="{Binding CopyCommand}" - IsVisible="{Binding HasTotpValue}" + IsVisible="{Binding AllowTotpCopy}" Grid.Row="0" Grid.Column="1" Grid.RowSpan="2" diff --git a/src/App/Pages/Vault/CipherAddEditPageViewModel.cs b/src/App/Pages/Vault/CipherAddEditPageViewModel.cs index a80cb8fb7..03c676672 100644 --- a/src/App/Pages/Vault/CipherAddEditPageViewModel.cs +++ b/src/App/Pages/Vault/CipherAddEditPageViewModel.cs @@ -307,6 +307,7 @@ namespace Bit.App.Pages public bool PasswordPrompt => Cipher.Reprompt != CipherRepromptType.None; public string PasswordVisibilityAccessibilityText => ShowPassword ? AppResources.PasswordIsVisibleTapToHide : AppResources.PasswordIsNotVisibleTapToShow; public bool HasTotpValue => IsLogin && !string.IsNullOrEmpty(Cipher?.Login?.Totp); + public bool AllowTotpCopy => HasTotpValue && Cipher.ViewPassword; public string SetupTotpText => $"{BitwardenIcons.Camera} {AppResources.SetupTotp}"; public bool ShowPasskeyInfo => Cipher?.HasFido2Credential == true && !CloneMode;