mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
Issue 27126: Added a link to License Management (#37771)
* Added a link to License Management * Added textAlign to EuiText instead
This commit is contained in:
parent
01dccbfb75
commit
44fc8c91d7
1 changed files with 25 additions and 14 deletions
|
@ -10,10 +10,15 @@ import {
|
|||
EuiPageBody,
|
||||
EuiSpacer,
|
||||
EuiCodeBlock,
|
||||
EuiPanel
|
||||
EuiPanel,
|
||||
EuiText,
|
||||
EuiLink
|
||||
} from '@elastic/eui';
|
||||
import { LicenseStatus, AddLicense } from 'plugins/xpack_main/components';
|
||||
import { FormattedMessage } from '@kbn/i18n/react';
|
||||
import chrome from 'ui/chrome';
|
||||
|
||||
const licenseManagement = `${chrome.getBasePath()}/app/kibana#/management/elasticsearch/license_management`;
|
||||
|
||||
const LicenseUpdateInfoForPrimary = ({ isPrimaryCluster, uploadLicensePath }) => {
|
||||
if (!isPrimaryCluster) {
|
||||
|
@ -53,21 +58,27 @@ const LicenseUpdateInfoForRemote = ({ isPrimaryCluster }) => {
|
|||
export function License(props) {
|
||||
const { status, type, isExpired, expiryDate } = props;
|
||||
return (
|
||||
<EuiPage className="licenseManagement">
|
||||
<EuiPage>
|
||||
<EuiPageBody>
|
||||
<div className="licManagement__contain">
|
||||
<LicenseStatus
|
||||
isExpired={isExpired}
|
||||
status={status}
|
||||
type={type}
|
||||
expiryDate={expiryDate}
|
||||
/>
|
||||
<LicenseStatus
|
||||
isExpired={isExpired}
|
||||
status={status}
|
||||
type={type}
|
||||
expiryDate={expiryDate}
|
||||
/>
|
||||
<EuiSpacer />
|
||||
|
||||
<EuiSpacer />
|
||||
|
||||
<LicenseUpdateInfoForPrimary {...props} />
|
||||
<LicenseUpdateInfoForRemote {...props} />
|
||||
</div>
|
||||
<LicenseUpdateInfoForPrimary {...props} />
|
||||
<LicenseUpdateInfoForRemote {...props} />
|
||||
<EuiSpacer />
|
||||
<EuiText size="m" textAlign="center">
|
||||
<p>
|
||||
For more license options please visit
|
||||
<EuiLink href={licenseManagement}>
|
||||
License Management
|
||||
</EuiLink>
|
||||
</p>
|
||||
</EuiText>
|
||||
</EuiPageBody>
|
||||
</EuiPage>
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue