From 01fb22dc4e9d209304ed9ccfc427a88ffb99f136 Mon Sep 17 00:00:00 2001 From: Max Hohlfeld Date: Thu, 29 Aug 2024 23:29:51 +0200 Subject: [PATCH] feat: confirm deletion --- build.rs | 4 ++++ src/endpoints/user/post_toggle.rs | 4 ++-- static/package-lock.json | 22 +++++++++++++++++++++- static/package.json | 4 +++- static/style.scss | 5 +++++ templates/base.html | 1 + templates/user/overview.html | 11 ++++++++++- 7 files changed, 46 insertions(+), 5 deletions(-) diff --git a/build.rs b/build.rs index 420f6f46..5f458cf1 100644 --- a/build.rs +++ b/build.rs @@ -32,6 +32,10 @@ fn main() -> std::io::Result<()> { nm_path.join("htmx.org/dist/ext/response-targets.js"), dist_path.join("response-targets.js"), )?; + copy( + nm_path.join("sweetalert2/dist/sweetalert2.min.js"), + dist_path.join("sweetalert2.min.js"), + )?; copy( Path::new("./static/brass.jpeg"), dist_path.join("brass.jpeg"), diff --git a/src/endpoints/user/post_toggle.rs b/src/endpoints/user/post_toggle.rs index b2266cad..7a1ee840 100644 --- a/src/endpoints/user/post_toggle.rs +++ b/src/endpoints/user/post_toggle.rs @@ -56,7 +56,7 @@ pub async fn post( Entsperren
ja
-