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:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user