Skip to content

Commit

Permalink
Move translation 'Add row' label to be historically
Browse files Browse the repository at this point in the history
  • Loading branch information
Ercogx committed Apr 20, 2024
1 parent cb4628b commit 0e57fd8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion resources/views/fields/matrix.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<a href="#" data-action="matrix#addRow" class="btn btn-block small text-muted">
<x-orchid-icon path="bs.plus-circle" class="me-2"/>

<span>{{ $addRowLabel ?? __('Add row') }}</span>
<span>{{ __($addRowLabel) }}</span>
</a>
</th>
</tr>
Expand Down
2 changes: 1 addition & 1 deletion src/Screen/Fields/Matrix.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class Matrix extends Field
'maxRows' => 0,
'keyValue' => false,
'fields' => [],
'addRowLabel' => null,
'addRowLabel' => 'Add row',
'columns' => [
'key',
'value',
Expand Down

0 comments on commit 0e57fd8

Please sign in to comment.