From c1fe6fbcc36bd29549019274d39f273b3e37755d Mon Sep 17 00:00:00 2001 From: wxiaoguang Date: Thu, 27 Jun 2024 21:58:38 +0800 Subject: Make toast support preventDuplicates (#31501) make preventDuplicates default to true, users get a clear UI feedback and know that "a new message appears". Fixes: https://github.com/go-gitea/gitea/issues/26651 --------- Co-authored-by: silverwind --- templates/devtest/gitea-ui.tmpl | 11 ----------- templates/devtest/toast.tmpl | 15 +++++++++++++++ 2 files changed, 15 insertions(+), 11 deletions(-) create mode 100644 templates/devtest/toast.tmpl (limited to 'templates') diff --git a/templates/devtest/gitea-ui.tmpl b/templates/devtest/gitea-ui.tmpl index ea293fd3b4..06d0e36569 100644 --- a/templates/devtest/gitea-ui.tmpl +++ b/templates/devtest/gitea-ui.tmpl @@ -182,15 +182,6 @@ -
-

Toast

-
- - - -
-
-

ComboMarkdownEditor

ps: no JS code attached, so just a layout
@@ -201,7 +192,5 @@
- -
{{template "base/footer" .}} diff --git a/templates/devtest/toast.tmpl b/templates/devtest/toast.tmpl new file mode 100644 index 0000000000..412f23964a --- /dev/null +++ b/templates/devtest/toast.tmpl @@ -0,0 +1,15 @@ +{{template "base/head" .}} + +
+

Toast

+
+ + + + +
+
+ + + +{{template "base/footer" .}} -- cgit v1.2.3