diff --git a/app/components/message_threads_bulk_actions_component.html.erb b/app/components/message_threads_bulk_actions_component.html.erb index fff432de1..bd7f39db2 100644 --- a/app/components/message_threads_bulk_actions_component.html.erb +++ b/app/components/message_threads_bulk_actions_component.html.erb @@ -7,7 +7,7 @@
Správy v schránke
<% if @ids.present? %> - <%= submit_tag 'Spojiť vlákna', name: 'merge', data: { turbo_confirm: 'Naozaj chcete spojiť označené vlákna do jedného?' }, class: "flex justify-center items-center gap-2.5 px-3.5 py-2.5 rounded-md bg-blue-600 text-base font-medium text-left text-white hover:cursor-pointer" %> + <%= submit_tag 'Spojiť vlákna', name: 'merge', title: (@ids.length < 2 ? "Označte aspoň dve vlákna" : "Spojiť označené vlákna do jedného"), disabled: @ids.length < 2, data: { turbo_confirm: 'Naozaj chcete spojiť označené vlákna do jedného?' }, class: "flex justify-center items-center gap-2.5 px-3.5 py-2.5 rounded-md #{@ids.length < 2 ? "bg-gray-400" : "bg-blue-600"} text-base font-medium text-left text-white hover:cursor-pointer" %> <% end %> <% end %>