mirror of
https://github.com/bitwarden/android.git
synced 2024-12-25 10:28:28 +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
|
<Entry
|
||||||
Text="{Binding Folder.Name}"
|
Text="{Binding Folder.Name}"
|
||||||
StyleClass="box-value"
|
StyleClass="box-value"
|
||||||
x:Name="_nameEntry" />
|
x:Name="_nameEntry"
|
||||||
|
ReturnType="Go"
|
||||||
|
ReturnCommand="{Binding SubmitCommand}" />
|
||||||
</StackLayout>
|
</StackLayout>
|
||||||
</StackLayout>
|
</StackLayout>
|
||||||
</StackLayout>
|
</StackLayout>
|
||||||
|
|
|
@ -5,6 +5,7 @@ using Bit.Core.Exceptions;
|
||||||
using Bit.Core.Models.View;
|
using Bit.Core.Models.View;
|
||||||
using Bit.Core.Utilities;
|
using Bit.Core.Utilities;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
using Xamarin.Forms;
|
||||||
|
|
||||||
namespace Bit.App.Pages
|
namespace Bit.App.Pages
|
||||||
{
|
{
|
||||||
|
@ -20,8 +21,11 @@ namespace Bit.App.Pages
|
||||||
_deviceActionService = ServiceContainer.Resolve<IDeviceActionService>("deviceActionService");
|
_deviceActionService = ServiceContainer.Resolve<IDeviceActionService>("deviceActionService");
|
||||||
_folderService = ServiceContainer.Resolve<IFolderService>("folderService");
|
_folderService = ServiceContainer.Resolve<IFolderService>("folderService");
|
||||||
_platformUtilsService = ServiceContainer.Resolve<IPlatformUtilsService>("platformUtilsService");
|
_platformUtilsService = ServiceContainer.Resolve<IPlatformUtilsService>("platformUtilsService");
|
||||||
|
|
||||||
|
SubmitCommand = new Command(async () => await SubmitAsync());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public Command SubmitCommand { get; }
|
||||||
public string FolderId { get; set; }
|
public string FolderId { get; set; }
|
||||||
public FolderView Folder
|
public FolderView Folder
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue