From 6f31bd7af89afcede1381eca9e923765ec32a00d Mon Sep 17 00:00:00 2001 From: Alex Turchyn Date: Fri, 18 Sep 2026 00:26:51 +0300 Subject: [PATCH] hide google drive in native app --- app/javascript/template_builder/preview.vue | 2 +- app/views/shared/_native_navbar.html.erb | 5 ----- app/views/templates/_dropzone.html.erb | 2 +- 3 files changed, 2 insertions(+), 7 deletions(-) diff --git a/app/javascript/template_builder/preview.vue b/app/javascript/template_builder/preview.vue index 8f7485057..14cf30732 100644 --- a/app/javascript/template_builder/preview.vue +++ b/app/javascript/template_builder/preview.vue @@ -161,7 +161,7 @@
"> - <% if Docuseal.multitenant? %> - - <%= link_to 'Google Drive', new_template_path(modal_tab: 'google_drive', folder_name: folder_name), data: { turbo_frame: :modal, native_modal: :medium } %> - - <% end %> <%= link_to t('create'), new_template_path(folder_name: folder_name), data: { turbo_frame: :modal, native_modal: :medium } %> diff --git a/app/views/templates/_dropzone.html.erb b/app/views/templates/_dropzone.html.erb index 6737447d0..3c028533a 100644 --- a/app/views/templates/_dropzone.html.erb +++ b/app/views/templates/_dropzone.html.erb @@ -15,7 +15,7 @@
<%= t('click_to_upload_or_drag_and_drop_html') %>
- <% if Docuseal.multitenant? %> + <% if Docuseal.multitenant? && !turbo_native_app? %> <%= t('or_add_from') %> <%= svg_icon('brand_gdrive', class: 'w-4 h-4 ml-1') %>