1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-07-25 08:09:38 +02:00

Adds condition to skip link to transaction form if it's not editable (#1394)

This commit is contained in:
Nico 2024-10-31 09:57:06 -03:00 committed by GitHub
parent e7f09e6f71
commit 7946cd7819
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -17,7 +17,7 @@
</div>
<div class="truncate text-gray-900">
<% if entry.new_record? %>
<% if entry.new_record? || !editable %>
<%= content_tag :p, entry.name %>
<% else %>
<%= link_to entry_name(entry),