Skip to content

Commit

Permalink
fix: We need Turbo to show confirmation popups
Browse files Browse the repository at this point in the history
  • Loading branch information
kidhab committed Dec 22, 2023
1 parent 719c6c9 commit 7680bec
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/views/articles/upload.haml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
%p
%i= t('.note')
#uploadArticles.uploadForm
= form_for(:articles, :url => {:controller => 'articles', :action => 'parse'}, :html => { :multipart => true }) do |form|
= form_for(:articles, data: {turbo: false}, :url => {:controller => 'articles', :action => 'parse'}, :html => { :multipart => true }) do |form|
%p
#{t('.upload')}:
= form.file_field("file")
Expand Down
2 changes: 1 addition & 1 deletion app/views/layouts/application.haml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
= csrf_meta_tag
= javascript_importmap_tags
= javascript_include_tag "application_legacy"
%body{data: {turbo: :false}}
%body
%nav{:class => "navbar navbar-expand-lg navbar-light bg-light"}
.container-fluid
.navbar-brand
Expand Down

0 comments on commit 7680bec

Please sign in to comment.