From e932165a982f89ab476b290b39397f379ef948e0 Mon Sep 17 00:00:00 2001 From: Arthur Lu Date: Fri, 4 Jul 2025 05:33:20 +0000 Subject: [PATCH] various minor fixes --- app/routes/index.go | 4 ++-- web/scripts/index.js | 1 - web/templates/config.go.tmpl | 8 ++++---- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/app/routes/index.go b/app/routes/index.go index 66cacc0..baf480a 100644 --- a/app/routes/index.go +++ b/app/routes/index.go @@ -63,9 +63,9 @@ func HandleGETIndex(c *gin.Context) { } func HandleGETInstancesFragment(c *gin.Context) { - Auth, err := common.GetAuth(c) + auth, err := common.GetAuth(c) if err == nil { // user should be authed, try to return index with population - instances, _, err := GetClusterResources(Auth) + instances, _, err := GetClusterResources(auth) if err != nil { common.HandleNonFatalError(c, err) } diff --git a/web/scripts/index.js b/web/scripts/index.js index 7154050..d65e1a7 100644 --- a/web/scripts/index.js +++ b/web/scripts/index.js @@ -123,7 +123,6 @@ class InstanceCard extends HTMLElement { if (powerButton.classList.contains("clickable")) { powerButton.onclick = this.handlePowerButton.bind(this); powerButton.onkeydown = (event) => { - console.log(event.key, event.key === "Enter"); if (event.key === "Enter") { event.preventDefault(); this.handlePowerButton(); diff --git a/web/templates/config.go.tmpl b/web/templates/config.go.tmpl index 76f9f68..fb7806d 100644 --- a/web/templates/config.go.tmpl +++ b/web/templates/config.go.tmpl @@ -238,7 +238,7 @@

-

Are you sure you want to delete disk {{.Name}}

+

Are you sure you want to delete disk {{.Name}}?

@@ -303,7 +303,7 @@

-

Are you sure you want to detach disk {{.Name}}

+

Are you sure you want to detach disk {{.Name}}?

@@ -396,7 +396,7 @@

-

Are you sure you want to delete {{.Net_ID}}

+

Are you sure you want to delete {{.Net_ID}}?

@@ -479,7 +479,7 @@

-

Are you sure you want to remove {{.Device_ID}}

+

Are you sure you want to remove {{.Device_ID}}?