From a57e25d3d3b5ac8e4bc83ee0424ed7195be04696 Mon Sep 17 00:00:00 2001 From: Shaun Walker Date: Wed, 17 Jun 2020 11:27:44 -0400 Subject: [PATCH] add styling to install wizard --- Oqtane.Client/UI/Installer.razor | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Oqtane.Client/UI/Installer.razor b/Oqtane.Client/UI/Installer.razor index 90d7dbd9..204197f6 100644 --- a/Oqtane.Client/UI/Installer.razor +++ b/Oqtane.Client/UI/Installer.razor @@ -3,6 +3,7 @@ @inject IInstallationService InstallationService @inject ISiteService SiteService @inject IUserService UserService +@inject IJSRuntime JSRuntime
@@ -138,6 +139,15 @@ private string _integratedSecurityDisplay = "display: none;"; private string _loadingDisplay = "display: none;"; + protected override async Task OnAfterRenderAsync(bool firstRender) + { + if (firstRender) + { + var interop = new Interop(JSRuntime); + await interop.IncludeLink("app-stylesheet", "stylesheet", "https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css", "text/css", "sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T", "anonymous", ""); + } + } + private void SetIntegratedSecurity(ChangeEventArgs e) { _integratedSecurityDisplay = Convert.ToBoolean((string)e.Value)