mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ACA-3870] Fix Version Compatibility Initialization (#6288)
This commit is contained in:
@@ -37,10 +37,12 @@ export class VersionCompatibilityDirective {
|
||||
}
|
||||
|
||||
private validateAcsVersion(requiredVersion: string) {
|
||||
if (requiredVersion && this.versionCompatibilityService.isVersionSupported(requiredVersion)) {
|
||||
this.viewContainer.createEmbeddedView(this.templateRef);
|
||||
} else {
|
||||
this.viewContainer.clear();
|
||||
}
|
||||
this.versionCompatibilityService.acsVersionInitialized$.subscribe(() => {
|
||||
if (requiredVersion && this.versionCompatibilityService.isVersionSupported(requiredVersion)) {
|
||||
this.viewContainer.createEmbeddedView(this.templateRef);
|
||||
} else {
|
||||
this.viewContainer.clear();
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user