Skip to content

Commit a77e68e

Browse files
committed
Removed hard coded bulk text
1 parent ef441f1 commit a77e68e

File tree

4 files changed

+12
-6
lines changed

4 files changed

+12
-6
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ All notable changes to `laravel-livewire-tables` will be documented in this file
44

55
## [Unreleased]
66

7+
## [1.2.2] - 2021-04-23
8+
9+
### Changed
10+
11+
- Removed hard coded bulk text of **users** and changed to **rows**
12+
713
## [1.2.1] - 2021-04-22
814

915
### Changed

resources/views/bootstrap-4/includes/table.blade.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
<x-livewire-tables::bs4.table.cell colspan="{{ count($bulkActions) ? count($columns) + 1 : count($columns) }}">
3131
@unless ($selectAll)
3232
<div>
33-
<span>{!! __('You have selected <strong>:count</strong> users, do you want to select all <strong>:total</strong>?', ['count' => $rows->count(), 'total' => number_format($rows->total())]) !!}</span>
33+
<span>{!! __('You have selected <strong>:count</strong> rows, do you want to select all <strong>:total</strong>?', ['count' => $rows->count(), 'total' => number_format($rows->total())]) !!}</span>
3434

3535
<button
3636
wire:click="selectAll"
@@ -42,7 +42,7 @@ class="btn btn-primary btn-sm"
4242
</div>
4343
@else
4444
<div>
45-
<span>{!! __('You are currently selecting all <strong>:total</strong> users.', ['total' => number_format($rows->total())]) !!}</span>
45+
<span>{!! __('You are currently selecting all <strong>:total</strong> rows.', ['total' => number_format($rows->total())]) !!}</span>
4646

4747
<button
4848
wire:click="resetBulk"

resources/views/bootstrap-5/includes/table.blade.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class="form-check-input"
3131
<x-livewire-tables::bs5.table.cell colspan="{{ count($bulkActions) ? count($columns) + 1 : count($columns) }}">
3232
@unless ($selectAll)
3333
<div>
34-
<span>{!! __('You have selected <strong>:count</strong> users, do you want to select all <strong>:total</strong>?', ['count' => $rows->count(), 'total' => number_format($rows->total())]) !!}</span>
34+
<span>{!! __('You have selected <strong>:count</strong> rows, do you want to select all <strong>:total</strong>?', ['count' => $rows->count(), 'total' => number_format($rows->total())]) !!}</span>
3535

3636
<button
3737
wire:click="selectAll"
@@ -43,7 +43,7 @@ class="btn btn-primary btn-sm"
4343
</div>
4444
@else
4545
<div>
46-
<span>{!! __('You are currently selecting all <strong>:total</strong> users.', ['total' => number_format($rows->total())]) !!}</span>
46+
<span>{!! __('You are currently selecting all <strong>:total</strong> rows.', ['total' => number_format($rows->total())]) !!}</span>
4747

4848
<button
4949
wire:click="resetBulk"

resources/views/tailwind/includes/table.blade.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class="rounded-md shadow-sm border-cool-gray-300 block transition duration-150 e
3333
<x-livewire-tables::table.cell :colspan="count($bulkActions) ? count($columns) + 1 : count($columns)">
3434
@unless ($selectAll)
3535
<div>
36-
<span>{!! __('You have selected <strong>:count</strong> users, do you want to select all <strong>:total</strong>?', ['count' => $rows->count(), 'total' => number_format($rows->total())]) !!}</span>
36+
<span>{!! __('You have selected <strong>:count</strong> rows, do you want to select all <strong>:total</strong>?', ['count' => $rows->count(), 'total' => number_format($rows->total())]) !!}</span>
3737

3838
<button
3939
wire:click="selectAll"
@@ -45,7 +45,7 @@ class="ml-1 text-blue-600 underline text-cool-gray-700 text-sm leading-5 font-me
4545
</div>
4646
@else
4747
<div>
48-
<span>{!! __('You are currently selecting all <strong>:total</strong> users.', ['total' => number_format($rows->total())]) !!}</span>
48+
<span>{!! __('You are currently selecting all <strong>:total</strong> rows.', ['total' => number_format($rows->total())]) !!}</span>
4949

5050
<button
5151
wire:click="resetBulk"

0 commit comments

Comments
 (0)