wabbajack/Wabbajack.App.Blazor/Pages/Settings.razor.cs

24 lines
562 B
C#
Raw Normal View History

2022-01-20 08:34:38 +00:00
using System;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Components;
using Wabbajack.App.Models;
namespace Wabbajack.App.Blazor.Pages;
public partial class Settings
{
[Inject] private ResourceSettingsManager _resourceSettingsManager { get; set; }
protected override async Task OnInitializedAsync()
{
try
{
2022-01-21 13:41:37 +00:00
var resource = await _resourceSettingsManager.GetSettings("Downloads");
2022-01-20 08:34:38 +00:00
StateHasChanged();
}
catch (Exception ex) { }
await base.OnInitializedAsync();
}
}