1
0
mirror of https://github.com/bitwarden/mobile synced 2026-01-08 11:33:31 +00:00

add/edit/delete custom fields. remove field page.

This commit is contained in:
Kyle Spearrin
2018-03-05 15:15:20 -05:00
parent c3f4d56d1e
commit 1f21a2ecc7
14 changed files with 459 additions and 304 deletions

View File

@@ -1,6 +1,7 @@
using Acr.UserDialogs;
using Bit.App.Abstractions;
using Bit.App.Models.Page;
using Bit.App.Resources;
using Coding4Fun.Toolkit.Controls;
using System;
using System.Linq;
@@ -164,5 +165,20 @@ namespace Bit.UWP.Services
{
throw new NotImplementedException();
}
public async Task<string> DisplayPromptAync(string title = null, string description = null, string text = null)
{
var result = await _userDialogs.PromptAsync(new PromptConfig
{
Title = title,
InputType = InputType.Default,
OkText = AppResources.Ok,
CancelText = AppResources.Cancel,
Message = description,
Text = text
});
return result.Ok ? result.Value ?? string.Empty : null;
}
}
}