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 @@