Skip to content

Commit

Permalink
Merge pull request #514 from DAnn2012/patch-4
Browse files Browse the repository at this point in the history
Fix String Translation in JS files
  • Loading branch information
oakesjosh authored Jul 16, 2024
2 parents a3f3d14 + 51ad2e9 commit 67067e7
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions src/blocks/advanced-form/fields/checkbox/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -224,23 +224,23 @@ function FieldCheckbox({ attributes, setAttributes, isSelected, clientId, contex
icon="arrow-up"
onClick={n === 0 ? undefined : onOptionMoveUp(n)}
className="kadence-blocks-list-item__move-up"
label={__('Move Item Up')}
label={__('Move Item Up', 'kadence-blocks')}
aria-disabled={n === 0}
disabled={n === 0}
/>
<Button
icon="arrow-down"
onClick={n + 1 === options.length ? undefined : onOptionMoveDown(n)}
className="kadence-blocks-list-item__move-down"
label={__('Move Item Down')}
label={__('Move Item Down', 'kadence-blocks')}
aria-disabled={n + 1 === options.length}
disabled={n + 1 === options.length}
/>
<Button
icon="no-alt"
onClick={() => removeOptionItem(n)}
className="kadence-blocks-list-item__remove"
label={__('Remove Item')}
label={__('Remove Item', 'kadence-blocks')}
disabled={1 === options.length}
/>
</div>
Expand Down
6 changes: 3 additions & 3 deletions src/blocks/advanced-form/fields/radio/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ function FieldRadio({ attributes, setAttributes, isSelected, clientId, context,
icon="arrow-up"
onClick={() => (n === 0 ? undefined : onOptionMoveUp(n))}
className="kadence-blocks-list-item__move-up"
label={__('Move Item Up')}
label={__('Move Item Up', 'kadence-blocks')}
aria-disabled={n === 0}
disabled={n === 0}
/>
Expand All @@ -242,15 +242,15 @@ function FieldRadio({ attributes, setAttributes, isSelected, clientId, context,
n + 1 === options.length ? undefined : onOptionMoveDown(n)
}
className="kadence-blocks-list-item__move-down"
label={__('Move Item Down')}
label={__('Move Item Down', 'kadence-blocks')}
aria-disabled={n + 1 === options.length}
disabled={n + 1 === options.length}
/>
<Button
icon="no-alt"
onClick={() => removeOptionItem(n)}
className="kadence-blocks-list-item__remove"
label={__('Remove Item')}
label={__('Remove Item', 'kadence-blocks')}
disabled={1 === options.length}
/>
</div>
Expand Down
6 changes: 3 additions & 3 deletions src/blocks/advanced-form/fields/select/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -227,23 +227,23 @@ function FieldSelect({ attributes, setAttributes, isSelected, clientId, context,
icon="arrow-up"
onClick={n === 0 ? undefined : onOptionMoveUp(n)}
className="kadence-blocks-list-item__move-up"
label={__('Move Item Up')}
label={__('Move Item Up', 'kadence-blocks')}
aria-disabled={n === 0}
disabled={n === 0}
/>
<Button
icon="arrow-down"
onClick={n + 1 === options.length ? undefined : onOptionMoveDown(n)}
className="kadence-blocks-list-item__move-down"
label={__('Move Item Down')}
label={__('Move Item Down', 'kadence-blocks')}
aria-disabled={n + 1 === options.length}
disabled={n + 1 === options.length}
/>
<Button
icon="no-alt"
onClick={() => removeOptionItem(n)}
className="kadence-blocks-list-item__remove"
label={__('Remove Item')}
label={__('Remove Item', 'kadence-blocks')}
disabled={1 === options.length}
/>
</div>
Expand Down

0 comments on commit 67067e7

Please sign in to comment.