freeipa-webui
freeipa-webui copied to clipboard
Adjust some of the other components like `ManagedByToolbar` or `ManagedByAddModal` to do a single concern
The interface of the ManagedByAddModal
is kinda hard to understand when we don't know the implementation.
E.g. I'd expect to have something like:
<AssociationAddModal
chosenEntries={managedByHosts}, // containing list of { key: host.uid, value: hostName }
availableEntriesLoader={functionToProvidePromiseOfListOfAvailableHosts} // promise would return same data structure as ^^
onSelectionChange={callback(selectedEntries)}
title="string"
/>
This would be usable for all the simple associations.
Originally posted by @pvoborni in https://github.com/freeipa/freeipa-webui/pull/67#discussion_r1172435486
This issue has not received any attention in 120 days.