Skip to content

Commit 4ebd64b

Browse files
committed
Fix AJAX search parameter name and improve localization strings for blocked users
1 parent 36b2e9e commit 4ebd64b

File tree

5 files changed

+6
-3
lines changed

5 files changed

+6
-3
lines changed

app/javascript/controllers/better_together/slim_select_controller.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export default class extends Controller {
3131

3232
return new Promise((resolve, reject) => {
3333
const url = new URL(options.ajax.url, window.location.origin);
34-
url.searchParams.append('q', search);
34+
url.searchParams.append('search', search);
3535

3636
fetch(url.toString(), {
3737
method: 'GET',

app/views/better_together/person_blocks/_index_content.html.erb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
<div class="list-group-item d-flex justify-content-between align-items-center" id="<%= dom_id(person_block) %>">
55
<div class="d-flex align-items-center">
66
<div class="me-3">
7-
<%= profile_image_tag(person_block.blocked,
8-
size: 50,
7+
<%= profile_image_tag(person_block.blocked,
8+
size: 50,
99
class: 'rounded-circle') %>
1010
</div>
1111
<div>

config/locales/en.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1286,6 +1286,7 @@ en:
12861286
block_person: Block Person
12871287
blocked_at: Blocked
12881288
blocked_count:
1289+
zero: No one blocked
12891290
one: 1 person blocked
12901291
other: "%{count} people blocked"
12911292
blocked_on: Blocked on %{date}

config/locales/es.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1292,6 +1292,7 @@ es:
12921292
block_person: Bloquear Persona
12931293
blocked_at: Bloqueado
12941294
blocked_count:
1295+
zero: Aún no has bloqueado a nadie
12951296
one: 1 persona bloqueada
12961297
other: "%{count} personas bloqueadas"
12971298
blocked_on: Bloqueado el %{date}

config/locales/fr.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1298,6 +1298,7 @@ fr:
12981298
block_person: Bloquer une personne
12991299
blocked_at: Bloqué
13001300
blocked_count:
1301+
zero: Aucun personne bloquée
13011302
one: 1 personne bloquée
13021303
other: "%{count} personnes bloquées"
13031304
blocked_on: Bloqué le %{date}

0 commit comments

Comments
 (0)