mirror of
https://github.com/elastic/kibana.git
synced 2025-06-28 03:01:21 -04:00
Fix "Assign object to spaces" flyout UX problems (#128946)
This commit is contained in:
parent
a5620502d0
commit
19e43a305d
16 changed files with 90 additions and 58 deletions
|
@ -447,13 +447,17 @@ const shareToSpaceFlyoutProps: ShareToSpaceFlyoutProps = {
|
|||
onClose: () => setShowFlyout(false),
|
||||
};
|
||||
|
||||
const canAssignSpaces = !capabilities || !!capabilities.savedObjectsManagement.shareIntoSpace;
|
||||
const clickProperties = canAssignSpaces
|
||||
? { cursorStyle: 'pointer', listOnClick: () => setShowFlyout(true) }
|
||||
: { cursorStyle: 'not-allowed' };
|
||||
return (
|
||||
<>
|
||||
<LazySpaceList
|
||||
namespaces={spaceIds}
|
||||
displayLimit={8}
|
||||
behaviorContext="outside-space" <4>
|
||||
listOnClick={() => setShowFlyout(true)}
|
||||
{...clickProperties}
|
||||
/>
|
||||
{showFlyout && <LazyShareToSpaceFlyout {...shareToSpaceFlyoutProps} />}
|
||||
</>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue