From eb4089960636a8ec277055338339ea0db32aa408 Mon Sep 17 00:00:00 2001
From: Vikas
Date: Sun, 23 Jun 2024 12:51:14 +0530
Subject: [PATCH] Add form submission loading indicator
---
views/index.templ | 2 +-
views/index_templ.go | 2 +-
views/view.templ | 26 +++++++++++++++++++++++++-
views/view_templ.go | 2 +-
4 files changed, 28 insertions(+), 4 deletions(-)
diff --git a/views/index.templ b/views/index.templ
index 8dc6151..14d611f 100644
--- a/views/index.templ
+++ b/views/index.templ
@@ -2,7 +2,7 @@ package views
templ Index() {
@base() {
- ")
+ _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
diff --git a/views/view.templ b/views/view.templ
index 5c8d2cf..94836dc 100644
--- a/views/view.templ
+++ b/views/view.templ
@@ -11,9 +11,33 @@ templ View() {
-
+
}
}
diff --git a/views/view_templ.go b/views/view_templ.go
index ae52b82..108ef0e 100644
--- a/views/view_templ.go
+++ b/views/view_templ.go
@@ -29,7 +29,7 @@ func View() templ.Component {
templ_7745c5c3_Buffer = templ.GetBuffer()
defer templ.ReleaseBuffer(templ_7745c5c3_Buffer)
}
- _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("View Paste
You can only view this paste once. Make sure to copy it before you close this page.
")
+ _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("View Paste
You can only view this paste once. Make sure to copy it before you close this page.
")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}