diff --git a/src/App/Pages/Send/SendAddEditPage.xaml b/src/App/Pages/Send/SendAddEditPage.xaml
index a90ed8cd0..e5b5e6f49 100644
--- a/src/App/Pages/Send/SendAddEditPage.xaml
+++ b/src/App/Pages/Send/SendAddEditPage.xaml
@@ -175,7 +175,7 @@
LineBreakMode="CharacterWrap"
StyleClass="text-sm, text-muted"
HorizontalOptions="FillAndExpand"
- HorizontalTextAlignment="Center"
+ HorizontalTextAlignment="Start"
AutomationId="SendNoFileChosenLabel" />
+ HorizontalTextAlignment="Start" />
-
-
-
-
CopyInsteadOfShareAfterSaving ? AppResources.CopySendLinkOnSave : AppResources.ShareOnSave;
+ public bool CopyInsteadOfShareAfterSaving { get; set; }
public string OptionsAccessilibityText => ShowOptions ? AppResources.OptionsExpanded : AppResources.OptionsCollapsed;
public List> TypeOptions { get; }
public List> DeletionTypeOptions { get; }
@@ -184,15 +183,6 @@ namespace Bit.App.Pages
}
}
}
- public bool CopyInsteadOfShareAfterSaving
- {
- get => _copyInsteadOfShareAfterSaving;
- set
- {
- SetProperty(ref _copyInsteadOfShareAfterSaving, value);
- TriggerPropertyChanged(nameof(ShareOnSaveText));
- }
- }
public SendView Send
{
get => _send;
@@ -412,34 +402,25 @@ namespace Bit.App.Pages
_messagingService.Send("sendUpdated");
}
- if (!ShareOnSave)
- {
- _platformUtilsService.ShowToast("success", null,
- EditMode ? AppResources.SendUpdated : AppResources.NewSendCreated);
- }
-
if (!CopyInsteadOfShareAfterSaving)
{
await CloseAsync();
}
- if (ShareOnSave)
+ var savedSend = await _sendService.GetAsync(sendId);
+ if (savedSend != null)
{
- var savedSend = await _sendService.GetAsync(sendId);
- if (savedSend != null)
+ var savedSendView = await savedSend.DecryptAsync();
+ if (CopyInsteadOfShareAfterSaving)
{
- var savedSendView = await savedSend.DecryptAsync();
- if (CopyInsteadOfShareAfterSaving)
- {
- await AppHelpers.CopySendUrlAsync(savedSendView);
+ await AppHelpers.CopySendUrlAsync(savedSendView);
- // wait so that the user sees the message before the view gets dismissed
- await Task.Delay(1300);
- }
- else
- {
- await AppHelpers.ShareSendUrlAsync(savedSendView);
- }
+ // wait so that the user sees the message before the view gets dismissed
+ await Task.Delay(1300);
+ }
+ else
+ {
+ await AppHelpers.ShareSendUrlAsync(savedSendView);
}
}
diff --git a/src/App/Pages/Send/SendAddOnlyPage.xaml b/src/App/Pages/Send/SendAddOnlyPage.xaml
index 844313361..e28b85ffb 100644
--- a/src/App/Pages/Send/SendAddOnlyPage.xaml
+++ b/src/App/Pages/Send/SendAddOnlyPage.xaml
@@ -94,13 +94,13 @@
LineBreakMode="CharacterWrap"
StyleClass="text-sm, text-muted"
HorizontalOptions="FillAndExpand"
- HorizontalTextAlignment="Center" />
+ HorizontalTextAlignment="Start" />
+ HorizontalTextAlignment="Start" />
-
-
-
-