Skip to content

Commit 37373da

Browse files
fix(admin): update show_deleted link to keep other query params in merchants
1 parent f781a05 commit 37373da

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/views/admin/merchants/index.html.slim

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ header.mb-3
2626
.stat-value= number_with_delimiter(merchant_deleted_count)
2727
- if merchant_deleted_count > 0
2828
.stat-actions.mt-1
29-
=< link_to 'Afficher', admin_merchants_path(show_deleted: true), class: 'btn btn-error btn-xs'
29+
- req_params = request.query_parameters.compact_blank
30+
=< link_to 'Afficher', admin_merchants_path(params: req_params.merge(show_deleted: true)), class: 'btn btn-error btn-xs'
3031

3132
button.btn.btn-square.btn-ghost.btn-xs.ml-1 onclick="merchants_deleted_help.showModal()"
3233
= lucide_icon 'circle-question-mark', class: 'w-4'

0 commit comments

Comments
 (0)