mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
[7.x] [APM] Delay rendering invalid license notification (#539… (#54646)
* [APM] Delay rendering invalid license notification Don't render an invalid license notification if the license information has not been loaded. (Don't render any UI either). * Show UI if license has not loaded
This commit is contained in:
parent
388303bc34
commit
05fc86a8b4
1 changed files with 2 additions and 2 deletions
|
@ -16,8 +16,8 @@ export const LicenseContext = React.createContext<ILicense | undefined>(
|
|||
|
||||
export function LicenseProvider({ children }: { children: React.ReactChild }) {
|
||||
const { license$ } = useApmPluginContext().plugins.licensing;
|
||||
const license = useObservable(license$);
|
||||
const hasInvalidLicense = !license?.isActive;
|
||||
const license = useObservable(license$, { isActive: true } as ILicense);
|
||||
const hasInvalidLicense = !license.isActive;
|
||||
|
||||
// if license is invalid show an error message
|
||||
if (hasInvalidLicense) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue