1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-08-04 04:55:20 +02:00

Show search bar even when no results in entries

Fixes #1449
This commit is contained in:
Zach Gollwitzer 2024-11-11 09:26:19 -05:00
parent 8ba04b0330
commit 3ef67faf7e
2 changed files with 14 additions and 15 deletions

View file

@ -21,10 +21,6 @@
</div> </div>
</div> </div>
<% if @entries.empty? %>
<p class="text-gray-500 text-sm p-4"><%= t(".no_entries") %></p>
<% else %>
<div> <div>
<%= form_with url: account_entries_path(@account), <%= form_with url: account_entries_path(@account),
id: "entries-search", id: "entries-search",
@ -46,6 +42,9 @@
<% end %> <% end %>
</div> </div>
<% if @entries.empty? %>
<p class="text-gray-500 text-sm p-4"><%= t(".no_entries") %></p>
<% else %>
<%= tag.div id: dom_id(@account, "entries_bulk_select"), <%= tag.div id: dom_id(@account, "entries_bulk_select"),
data: { data: {
controller: "bulk-select", controller: "bulk-select",

View file

@ -16,7 +16,7 @@ en:
new: New new: New
new_balance: New balance new_balance: New balance
new_transaction: New transaction new_transaction: New transaction
no_entries: No entries yet no_entries: No entries found
title: Activity title: Activity
loading: loading:
loading: Loading entries... loading: Loading entries...