mirror of
https://github.com/docusealco/docuseal
synced 2026-11-06 15:02:33 -05:00
use url for open modal
This commit is contained in:
1 parent
34ea639c25
commit
ca0acb34d6
1 file changed
+1
-1
@@ -22,7 +22,7 @@
|
||||
<% if params[:modal].present? %>
|
||||
<% url_params = Rails.application.routes.recognize_path(params[:modal], method: :get) %>
|
||||
<% if url_params[:action] == 'new' %>
|
||||
<open-modal src="<%= params[:modal] %>"></open-modal>
|
||||
<open-modal src="<%= url_for(url_params) %>"></open-modal>
|
||||
<% end %>
|
||||
<% end %>
|
||||
<turbo-frame id="modal"></turbo-frame>
|
||||
|
||||
Reference in new issue
Block a user