mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
[Roles] Reordered sections in role management page (#184924)
## Summary Reordered sections in role management page. [As agreed](https://github.com/elastic/kibana/issues/182984#issuecomment-2149886052) the order is the following: - Cluster - Remote Cluster - Run As - Index - Remote Index ### Checklist - [x] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios - [x] This renders correctly on smaller devices using a responsive layout. (You can test this [in your browser](https://www.browserstack.com/guide/responsive-testing-on-local-server)) ### For maintainers - [x] This was checked for breaking API changes and was [labeled appropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process) __Fixes: https://github.com/elastic/kibana/issues/182984__
This commit is contained in:
parent
5193d45698
commit
825efd0ef3
1 changed files with 33 additions and 34 deletions
|
@ -106,6 +106,39 @@ export class ElasticsearchPrivileges extends Component<Props, {}> {
|
|||
</EuiFormRow>
|
||||
</EuiDescribedFormGroup>
|
||||
<EuiSpacer />
|
||||
{buildFlavor === 'traditional' && canUseRemoteClusters && (
|
||||
<>
|
||||
<EuiTitle size="xs">
|
||||
<h3>
|
||||
<FormattedMessage
|
||||
id="xpack.security.management.editRole.elasticSearchPrivileges.remoteClusterPrivilegesTitle"
|
||||
defaultMessage="Remote cluster privileges"
|
||||
/>
|
||||
</h3>
|
||||
</EuiTitle>
|
||||
<EuiSpacer size="s" />
|
||||
<EuiText size="s" color="subdued">
|
||||
<p>
|
||||
<FormattedMessage
|
||||
id="xpack.security.management.editRole.elasticSearchPrivileges.controlAccessToRemoteClusterActionsDescription"
|
||||
defaultMessage="Manage the actions this role can perform against your remote cluster. "
|
||||
/>
|
||||
{this.learnMore(docLinks.links.security.clusterPrivileges)}
|
||||
</p>
|
||||
</EuiText>
|
||||
<RemoteClusterPrivileges
|
||||
remoteClusters={remoteClusters}
|
||||
role={role}
|
||||
validator={validator}
|
||||
license={license}
|
||||
onChange={onChange}
|
||||
availableRemoteClusterPrivileges={builtinESPrivileges.remote_cluster ?? []}
|
||||
editable={editable}
|
||||
/>
|
||||
<EuiSpacer />
|
||||
<EuiSpacer />
|
||||
</>
|
||||
)}
|
||||
|
||||
{buildFlavor === 'traditional' && (
|
||||
<>
|
||||
|
@ -222,40 +255,6 @@ export class ElasticsearchPrivileges extends Component<Props, {}> {
|
|||
/>
|
||||
</>
|
||||
)}
|
||||
{buildFlavor === 'traditional' && canUseRemoteClusters && (
|
||||
<>
|
||||
<EuiSpacer />
|
||||
<EuiSpacer />
|
||||
|
||||
<EuiTitle size="xs">
|
||||
<h3>
|
||||
<FormattedMessage
|
||||
id="xpack.security.management.editRole.elasticSearchPrivileges.remoteClusterPrivilegesTitle"
|
||||
defaultMessage="Remote cluster privileges"
|
||||
/>
|
||||
</h3>
|
||||
</EuiTitle>
|
||||
<EuiSpacer size="s" />
|
||||
<EuiText size="s" color="subdued">
|
||||
<p>
|
||||
<FormattedMessage
|
||||
id="xpack.security.management.editRole.elasticSearchPrivileges.controlAccessToRemoteClusterDataDescription"
|
||||
defaultMessage="Control access to the data in remote clusters. "
|
||||
/>
|
||||
{this.learnMore(docLinks.links.security.clusterPrivileges)}
|
||||
</p>
|
||||
</EuiText>
|
||||
<RemoteClusterPrivileges
|
||||
remoteClusters={remoteClusters}
|
||||
role={role}
|
||||
validator={validator}
|
||||
license={license}
|
||||
onChange={onChange}
|
||||
availableRemoteClusterPrivileges={builtinESPrivileges.remote_cluster ?? []}
|
||||
editable={editable}
|
||||
/>
|
||||
</>
|
||||
)}
|
||||
</Fragment>
|
||||
);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue