mirror of
https://github.com/bitwarden/mobile
synced 2025-12-15 07:43:37 +00:00
more do once
This commit is contained in:
@@ -50,7 +50,10 @@ namespace Bit.App.Pages
|
|||||||
|
|
||||||
private async void PasswordHistory_Tapped(object sender, System.EventArgs e)
|
private async void PasswordHistory_Tapped(object sender, System.EventArgs e)
|
||||||
{
|
{
|
||||||
await Navigation.PushModalAsync(new NavigationPage(new PasswordHistoryPage(_vm.CipherId)));
|
if(DoOnce())
|
||||||
|
{
|
||||||
|
await Navigation.PushModalAsync(new NavigationPage(new PasswordHistoryPage(_vm.CipherId)));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
using Bit.App.Abstractions;
|
using Bit.App.Abstractions;
|
||||||
using Bit.App.Models;
|
|
||||||
using Bit.App.Resources;
|
using Bit.App.Resources;
|
||||||
using Bit.App.Utilities;
|
using Bit.App.Utilities;
|
||||||
using Bit.Core.Abstractions;
|
using Bit.Core.Abstractions;
|
||||||
@@ -289,6 +288,10 @@ namespace Bit.App.Pages
|
|||||||
|
|
||||||
private async void CheckPasswordAsync()
|
private async void CheckPasswordAsync()
|
||||||
{
|
{
|
||||||
|
if(!(Page as BaseContentPage).DoOnce())
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
if(string.IsNullOrWhiteSpace(Cipher.Login?.Password))
|
if(string.IsNullOrWhiteSpace(Cipher.Login?.Password))
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
@@ -309,6 +312,10 @@ namespace Bit.App.Pages
|
|||||||
|
|
||||||
private async void DownloadAttachmentAsync(AttachmentView attachment)
|
private async void DownloadAttachmentAsync(AttachmentView attachment)
|
||||||
{
|
{
|
||||||
|
if(!(Page as BaseContentPage).DoOnce())
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
if(Cipher.OrganizationId == null && !CanAccessPremium)
|
if(Cipher.OrganizationId == null && !CanAccessPremium)
|
||||||
{
|
{
|
||||||
await _platformUtilsService.ShowDialogAsync(AppResources.PremiumRequired);
|
await _platformUtilsService.ShowDialogAsync(AppResources.PremiumRequired);
|
||||||
@@ -411,7 +418,7 @@ namespace Bit.App.Pages
|
|||||||
|
|
||||||
private void LaunchUri(LoginUriView uri)
|
private void LaunchUri(LoginUriView uri)
|
||||||
{
|
{
|
||||||
if(uri.CanLaunch)
|
if(uri.CanLaunch && (Page as BaseContentPage).DoOnce())
|
||||||
{
|
{
|
||||||
_platformUtilsService.LaunchUri(uri.LaunchUri);
|
_platformUtilsService.LaunchUri(uri.LaunchUri);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user