From 8a35789298e7a748110b125e21de000e665ea9a2 Mon Sep 17 00:00:00 2001
From: pvincent
Date: Fri, 27 Feb 2026 15:03:56 +0000
Subject: [PATCH] Ok, Cancel web design order
---
app/javascript/initializers/forms.js | 5 ++++-
app/views/edge/index.html.erb | 5 +----
app/views/layouts/components/_main_dialog.html.erb | 2 +-
3 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/app/javascript/initializers/forms.js b/app/javascript/initializers/forms.js
index 9374610..a30c9ba 100644
--- a/app/javascript/initializers/forms.js
+++ b/app/javascript/initializers/forms.js
@@ -3,7 +3,10 @@
Turbo.config.forms.confirm_dialog_id = 'front-dialog'
Turbo.config.forms.confirm_dialog_content_selector = '[data-dialog-content]'
-/** content might be either a String or a Boolean */
+/** content might be either a String or a Boolean
+ *
+ * in case of True: the title with no content will appear
+*/
Turbo.config.forms.confirm = (content) => {
if (content.toString() == 'false') return new Promise((resolve) => { resolve(true) })
if (content.toString() == 'true') content = ''
diff --git a/app/views/edge/index.html.erb b/app/views/edge/index.html.erb
index eb2122e..6e72986 100644
--- a/app/views/edge/index.html.erb
+++ b/app/views/edge/index.html.erb
@@ -3,14 +3,11 @@
-
<%= button_to 'Show Modal Default',false, class: "btn btn-primary", data: { turbo_show_modal: true } %>
-
-
- -
<%= button_to 'Show Modal Front',false, class: "btn btn-primary", data: { turbo_show_modal: 'front-dialog'} %>
-
-
diff --git a/app/views/layouts/components/_main_dialog.html.erb b/app/views/layouts/components/_main_dialog.html.erb
index 8ac19ba..9a8aed4 100644
--- a/app/views/layouts/components/_main_dialog.html.erb
+++ b/app/views/layouts/components/_main_dialog.html.erb
@@ -22,8 +22,8 @@