cms icon indicating copy to clipboard operation
cms copied to clipboard

[5.x] Replicator "add set" button label option

Open godismyjudge95 opened this issue 1 year ago • 1 comments

Closes:

  • https://github.com/statamic/ideas/issues/1032
  • https://github.com/statamic/ideas/issues/28

This PR adds a simple text config option to the replicator field. The option is defaulted to empty so nothing about the default behavior changes.

It allows one to customize the labels like so:

image

image

godismyjudge95 avatar Apr 02 '24 17:04 godismyjudge95

Alternatively, I could change this so that it replaces the + icon entirely with the label. Similar to how the grid "add row" button works

godismyjudge95 avatar Apr 04 '24 16:04 godismyjudge95

Somehow the small "plus" buttons that are shown on hover between replicator fields are gone in the latest release (v5.6.0):

Monosnap @Robert Stehr - Discord 2024-05-29 16-01-39

Could this be related to these changes somehow? I don't see any other replicator related changes in the release.

regards

toxsick avatar May 29 '24 14:05 toxsick

@toxsick Do you have any javascript errors?

jasonvarga avatar May 29 '24 14:05 jasonvarga

Somehow the small "plus" buttons that are shown on hover between replicator fields are gone in the latest release (v5.6.0):

Could this be related to these changes somehow? I don't see any other replicator related changes in the release.

regards

Figured it out, PR submitted

godismyjudge95 avatar May 29 '24 14:05 godismyjudge95

@toxsick Can you try updating to v5.6.1? It included #10217, which should have fixed it.

duncanmcclean avatar May 29 '24 15:05 duncanmcclean

Hey guys, jeah as @jasonvarga suggested I was seeing js errors. Everything works again in v5.6.1 now. Thanks a lot!

toxsick avatar May 30 '24 13:05 toxsick