Skip to content

Commit

Permalink
Pass in the type capitalized
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisronline committed Jul 11, 2018
1 parent 94e85c7 commit 6a05bb1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion x-pack/plugins/monitoring/public/views/license/controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down

0 comments on commit 6a05bb1

Please sign in to comment.