From f70bf530bac4c9f35201f21116969e551fb4e6e0 Mon Sep 17 00:00:00 2001 From: Pete Matsyburka Date: Sun, 3 May 2026 08:19:58 +0300 Subject: [PATCH] hide qr link --- app/views/templates_share_link/show.html.erb | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/app/views/templates_share_link/show.html.erb b/app/views/templates_share_link/show.html.erb index e6b48f4c..0b948c71 100644 --- a/app/views/templates_share_link/show.html.erb +++ b/app/views/templates_share_link/show.html.erb @@ -25,9 +25,11 @@
- - <%= svg_icon('qrcode', class: 'w-6 h-6') %> - + <% if @template.variables_schema.blank? && !@template.preferences&.dig('require_email_2fa') && !@template.preferences&.dig('require_phone_2fa') %> + + <%= svg_icon('qrcode', class: 'w-6 h-6') %> + + <% end %>
<%= render 'shared/clipboard_copy', icon: 'copy', text: start_form_url(slug: @template.slug, host: form_link_host), class: 'base-button', icon_class: 'w-6 h-6 text-white', copy_title: t('copy'), copied_title: t('copied') %>