From dca1385e27470cdea491b4f525242e21a15a942f Mon Sep 17 00:00:00 2001 From: Matthew Stobbs Date: Sat, 23 Mar 2024 11:39:25 -0600 Subject: [PATCH] added onload trigger to manager - now shows a loading graphic before loading clusterinfo on initial load --- view/layouts/manager.templ | 8 ++------ view/layouts/manager_templ.go | 28 +++++++++++++++++++++++++--- 2 files changed, 27 insertions(+), 9 deletions(-) diff --git a/view/layouts/manager.templ b/view/layouts/manager.templ index c865cba..cbaee2b 100644 --- a/view/layouts/manager.templ +++ b/view/layouts/manager.templ @@ -17,12 +17,8 @@ templ Manager(title string, subtitle string) {
@components.HostNav() -
-

This is where you can see a system overview of all available hosts

-

- For now, there is just this simple box to choose a host to connect to - and push the button to load the system information via HTMX -

+
+
diff --git a/view/layouts/manager_templ.go b/view/layouts/manager_templ.go index aaf1a99..7bf0f4a 100644 --- a/view/layouts/manager_templ.go +++ b/view/layouts/manager_templ.go @@ -195,16 +195,16 @@ func Manager(title string, subtitle string) templ.Component { if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } - _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("\">

This is where you can see a system overview of all available hosts

For now, there is just this simple box to choose a host to connect to and push the button to load the system information via HTMX

") + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("\">") if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } - var templ_7745c5c3_Var16 = []any{"px-4", "bottom-0", "w-full", "justify-self-end"} + var templ_7745c5c3_Var16 = []any{"inline-block"} templ_7745c5c3_Err = templ.RenderCSSItems(ctx, templ_7745c5c3_Buffer, templ_7745c5c3_Var16...) if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } - _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("