Fixed js invoke errors

This commit is contained in:
Marcel Baumgartner
2023-07-02 21:30:34 +02:00
parent 7f2da5a55d
commit d418c91efa
3 changed files with 41 additions and 15 deletions

View File

@@ -163,13 +163,11 @@
private bool IsIpBanned = false;
protected override void OnInitialized()
{
AddBodyAttribute("data-kt-app-page-loading", "on");
}
protected override void OnAfterRender(bool firstRender)
{
if(firstRender)
AddBodyAttribute("data-kt-app-page-loading", "on");
//Initialize classes and attributes for layout with dark sidebar
AddBodyAttribute("data-kt-app-reset-transition", "true");