mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
Pass in the type capitalized
This commit is contained in:
parent
94e85c7a60
commit
6a05bb12f3
1 changed files with 3 additions and 1 deletions
|
@ -54,12 +54,14 @@ export class LicenseViewController {
|
|||
expiryDate = formatDateTimeLocal(license.expiry_date);
|
||||
}
|
||||
|
||||
const capitalizedType = license.type[0].toUpperCase() + license.type.slice(1);
|
||||
|
||||
// Mount the React component to the template
|
||||
render(
|
||||
<License
|
||||
isPrimaryCluster={isPrimaryCluster}
|
||||
status={license.status}
|
||||
type={license.type}
|
||||
type={capitalizedType}
|
||||
isExpired={isExpired}
|
||||
expiryDate={expiryDate}
|
||||
uploadLicensePath={uploadLicensePath}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue