elliot-sawyer / silverstripe-linkfield

Adds a Linkfield for gorriecoe/silverstripe-link
BSD 3-Clause "New" or "Revised" License
9 stars 25 forks source link

Unecessary Add Button on Has one relation #21

Closed scaventum closed 3 years ago

scaventum commented 4 years ago

Hello,

I have a request regarding the UX, when we want to add a single link to DataObject:

private static $has_one = [
        'ButtonLink' => Link::class,
]

i noticed that when we've created or are editing the link, there's a plus (+) button on the bottom right of the screen, which indicates that we can add another link to the DataObject, this could be confusing to user since there's only 1 link that can be attached to DataObject, and adding a new one will overwrite the old link.

Is there any way to disable this button?

Thanks

GuySartorelli commented 3 years ago

@elliot-sawyer This was fixed in #24 and can be closed.