bba9c1d1d8
Build and Deploy to Kubernetes / build-and-deploy (push) Successful in 6m18s
- SitePageSettingsService: new gRPC client for simplified page settings - Licenses.razor: new page showing license certificates from CMS - RouteConstants: added Licenses route - Footer + MainLayout: added Licenses navigation link - Proto NuGet updated to 0.0.180
32 lines
724 B
C#
32 lines
724 B
C#
using FrontOffice.Main.Utilities;
|
|
|
|
namespace FrontOffice.Main.Pages;
|
|
|
|
public partial class Licenses
|
|
{
|
|
private bool _loading = true;
|
|
private PageSettingsDto? _pageData;
|
|
private List<PageSettingsImageDto> _licenseImages = new();
|
|
|
|
protected override async Task OnInitializedAsync()
|
|
{
|
|
try
|
|
{
|
|
_pageData = await PageSettingsService.GetPageAsync("licenses");
|
|
|
|
if (_pageData != null)
|
|
{
|
|
_licenseImages = _pageData.GetImages("licenses");
|
|
}
|
|
}
|
|
catch
|
|
{
|
|
// Fallback: page remains null → hardcoded content will render
|
|
}
|
|
finally
|
|
{
|
|
_loading = false;
|
|
}
|
|
}
|
|
}
|