mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
* Ensure we pass down the expiry_date for the license * Update tests * Update fixtues * Update fixture * Revert "Update fixture" This reverts commit0a1e7a5b29
. * Revert "Update fixtues" This reverts commitb0c0e70200
. * Revert "Update tests" This reverts commit6a4421bb4e
. * Revert "Ensure we pass down the expiry_date for the license" This reverts commit2562395a78
. * Use expiry_date_in_millis value instead of expiry_date
This commit is contained in:
parent
01a2771e98
commit
b62148c35e
2 changed files with 4 additions and 4 deletions
|
@ -26,7 +26,7 @@ export function LicenseText({ license, showLicenseExpiration }) {
|
|||
|
||||
return (
|
||||
<EuiLink href="#/license">
|
||||
{capitalize(license.type)} license <WillExpireOn expiryDate={license.expiry_date} />
|
||||
{capitalize(license.type)} license <WillExpireOn expiryDate={license.expiry_date_in_millis} />
|
||||
</EuiLink>
|
||||
);
|
||||
}
|
||||
|
|
|
@ -49,9 +49,9 @@ export class LicenseViewController {
|
|||
renderReact($scope) {
|
||||
$scope.$evalAsync(() => {
|
||||
const { isPrimaryCluster, license, isExpired, uploadLicensePath } = this;
|
||||
let expiryDate = license.expiry_date;
|
||||
if (license.expiry_date !== undefined) {
|
||||
expiryDate = formatDateTimeLocal(license.expiry_date);
|
||||
let expiryDate = license.expiry_date_in_millis;
|
||||
if (license.expiry_date_in_millis !== undefined) {
|
||||
expiryDate = formatDateTimeLocal(license.expiry_date_in_millis);
|
||||
}
|
||||
|
||||
// Mount the React component to the template
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue