25 lines
985 B
C#
25 lines
985 B
C#
using Blazorise;
|
|
using Gremlin_BlazorServer.Data.EntityClasses;
|
|
using Microsoft.AspNetCore.Components;
|
|
using Microsoft.AspNetCore.Components.Authorization;
|
|
|
|
namespace Gremlin_BlazorServer.Pages;
|
|
|
|
public partial class Debug {
|
|
[CascadingParameter] private Task<AuthenticationState>? AuthenticationStateTask { get; set; }
|
|
private Task<ModalInstance> OnInstantiateModal() {
|
|
// Random random = new();
|
|
// long newValue = random.NextInt64(100);
|
|
// return ModalService.Show<ShowCounter>(
|
|
// "Counter",
|
|
// parameter => parameter.Add(x => x.Value, newValue)
|
|
// );
|
|
CustomDescription customDescription = new();
|
|
List<CustomDescription> suggestions = new();
|
|
|
|
return ModalService.Show<CustomDescriptionModal>(builder => {
|
|
builder.Add(parameter => parameter.CustomDescription, customDescription);
|
|
builder.Add(parameter => parameter.Suggestions, suggestions);
|
|
});
|
|
}
|
|
} |