Skip to content

Commit 7680bec

Browse files
committed
fix: We need Turbo to show confirmation popups
1 parent 719c6c9 commit 7680bec

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/views/articles/upload.haml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
%p
55
%i= t('.note')
66
#uploadArticles.uploadForm
7-
= form_for(:articles, :url => {:controller => 'articles', :action => 'parse'}, :html => { :multipart => true }) do |form|
7+
= form_for(:articles, data: {turbo: false}, :url => {:controller => 'articles', :action => 'parse'}, :html => { :multipart => true }) do |form|
88
%p
99
#{t('.upload')}:
1010
= form.file_field("file")

app/views/layouts/application.haml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
= csrf_meta_tag
88
= javascript_importmap_tags
99
= javascript_include_tag "application_legacy"
10-
%body{data: {turbo: :false}}
10+
%body
1111
%nav{:class => "navbar navbar-expand-lg navbar-light bg-light"}
1212
.container-fluid
1313
.navbar-brand

0 commit comments

Comments
 (0)