File tree Expand file tree Collapse file tree
x-pack/plugins/security/public/management/api_keys/api_keys_grid Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -34,6 +34,7 @@ import { FormattedMessage } from '@kbn/i18n/react';
3434import type { PublicMethodsOf } from '@kbn/utility-types' ;
3535import type { NotificationsStart } from 'src/core/public' ;
3636
37+ import { APP_WRAPPER_CLASS } from '../../../../../../../src/core/public' ;
3738import { SectionLoading } from '../../../../../../../src/plugins/es_ui_shared/public' ;
3839import { reactRouterNavigate } from '../../../../../../../src/plugins/kibana_react/public' ;
3940import type { ApiKey , ApiKeyToInvalidate } from '../../../../common/model' ;
@@ -88,7 +89,7 @@ export class APIKeysGridPage extends Component<Props, State> {
8889
8990 public render ( ) {
9091 return (
91- < div >
92+ < div className = { APP_WRAPPER_CLASS } >
9293 < Route path = "/create" >
9394 < Breadcrumb
9495 text = { i18n . translate ( 'xpack.security.management.apiKeys.createBreadcrumb' , {
@@ -157,7 +158,7 @@ export class APIKeysGridPage extends Component<Props, State> {
157158
158159 if ( ! areApiKeysEnabled ) {
159160 return (
160- < EuiPageContent >
161+ < EuiPageContent verticalPosition = "center" horizontalPosition = "center" color = "danger" >
161162 < NotEnabled />
162163 </ EuiPageContent >
163164 ) ;
Original file line number Diff line number Diff line change 55 * 2.0.
66 */
77
8- import { EuiCallOut , EuiLink } from '@elastic/eui' ;
8+ import { EuiEmptyPrompt , EuiLink } from '@elastic/eui' ;
99import React from 'react' ;
1010
1111import { FormattedMessage } from '@kbn/i18n/react' ;
@@ -15,30 +15,35 @@ import { useKibana } from '../../../../../../../../src/plugins/kibana_react/publ
1515export const NotEnabled : React . FunctionComponent = ( ) => {
1616 const docLinks = useKibana ( ) . services . docLinks ! ;
1717 return (
18- < EuiCallOut
18+ < EuiEmptyPrompt
1919 title = {
20- < FormattedMessage
21- id = "xpack.security.management.apiKeys.table.apiKeysDisabledErrorTitle"
22- defaultMessage = "API keys not enabled in Elasticsearch"
23- />
20+ < h2 >
21+ < FormattedMessage
22+ id = "xpack.security.management.apiKeys.table.apiKeysDisabledErrorTitle"
23+ defaultMessage = "API keys not enabled in Elasticsearch"
24+ />
25+ </ h2 >
2426 }
2527 color = "danger"
2628 iconType = "alert"
27- >
28- < FormattedMessage
29- id = "xpack.security.management.apiKeys.table.apiKeysDisabledErrorDescription"
30- defaultMessage = "Contact your system administrator and refer to the {link} to enable API keys."
31- values = { {
32- link : (
33- < EuiLink href = { `${ docLinks . links . security . apiKeyServiceSettings } ` } target = "_blank" >
34- < FormattedMessage
35- id = "xpack.security.management.apiKeys.table.apiKeysDisabledErrorLinkText"
36- defaultMessage = "docs"
37- />
38- </ EuiLink >
39- ) ,
40- } }
41- />
42- </ EuiCallOut >
29+ body = {
30+ < p >
31+ < FormattedMessage
32+ id = "xpack.security.management.apiKeys.table.apiKeysDisabledErrorDescription"
33+ defaultMessage = "Contact your system administrator and refer to the {link} to enable API keys."
34+ values = { {
35+ link : (
36+ < EuiLink href = { `${ docLinks . links . security . apiKeyServiceSettings } ` } target = "_blank" >
37+ < FormattedMessage
38+ id = "xpack.security.management.apiKeys.table.apiKeysDisabledErrorLinkText"
39+ defaultMessage = "docs"
40+ />
41+ </ EuiLink >
42+ ) ,
43+ } }
44+ />
45+ </ p >
46+ }
47+ />
4348 ) ;
4449} ;
You can’t perform that action at this time.
0 commit comments