google drive file picker

This commit is contained in:
Alex Turchyn
2025-10-09 16:43:11 +03:00
committed by GitHub
parent b99235397a
commit 9e8e1996e8
19 changed files with 608 additions and 87 deletions
+6
View File
@@ -19,6 +19,12 @@
<%= stylesheet_pack_tag 'application', media: 'all' %>
</head>
<body>
<% 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>
<% end %>
<% end %>
<turbo-frame id="modal"></turbo-frame>
<turbo-frame id="drawer"></turbo-frame>
<%= render 'shared/navbar' %>