Plugins: adding possibility to install enterprise plugins if you have a valid license. (#36653)

This commit is contained in:
Marcus Andersson 2021-07-12 22:18:39 +02:00 committed by GitHub
parent 36cb396568
commit d4e53a9be4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -80,7 +80,7 @@ export const InstallControls = ({ localPlugin, remotePlugin }: Props) => {
const isEnterprise = remotePlugin?.status === 'enterprise';
const hasPermission = isGrafanaAdmin();
if (isEnterprise) {
if (isEnterprise && !config.licenseInfo?.hasValidLicense) {
return (
<div className={styles.message}>
Marketplace doesn&#39;t support installing Enterprise plugins yet. Stay tuned!