return command for folders add/edit

This commit is contained in:
Kyle Spearrin 2019-05-31 12:14:25 -04:00
parent a98283f3ff
commit b5d2a9a2fb
2 changed files with 7 additions and 1 deletions

View file

@ -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>

View file

@ -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
{