mirror of
https://github.com/bitwarden/android.git
synced 2024-12-24 01:48:25 +03:00
return command for folders add/edit
This commit is contained in:
parent
a98283f3ff
commit
b5d2a9a2fb
2 changed files with 7 additions and 1 deletions
|
@ -31,7 +31,9 @@
|
|||
<Entry
|
||||
Text="{Binding Folder.Name}"
|
||||
StyleClass="box-value"
|
||||
x:Name="_nameEntry" />
|
||||
x:Name="_nameEntry"
|
||||
ReturnType="Go"
|
||||
ReturnCommand="{Binding SubmitCommand}" />
|
||||
</StackLayout>
|
||||
</StackLayout>
|
||||
</StackLayout>
|
||||
|
|
|
@ -5,6 +5,7 @@ using Bit.Core.Exceptions;
|
|||
using Bit.Core.Models.View;
|
||||
using Bit.Core.Utilities;
|
||||
using System.Threading.Tasks;
|
||||
using Xamarin.Forms;
|
||||
|
||||
namespace Bit.App.Pages
|
||||
{
|
||||
|
@ -20,8 +21,11 @@ namespace Bit.App.Pages
|
|||
_deviceActionService = ServiceContainer.Resolve<IDeviceActionService>("deviceActionService");
|
||||
_folderService = ServiceContainer.Resolve<IFolderService>("folderService");
|
||||
_platformUtilsService = ServiceContainer.Resolve<IPlatformUtilsService>("platformUtilsService");
|
||||
|
||||
SubmitCommand = new Command(async () => await SubmitAsync());
|
||||
}
|
||||
|
||||
public Command SubmitCommand { get; }
|
||||
public string FolderId { get; set; }
|
||||
public FolderView Folder
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue