mirror of
https://github.com/bitwarden/browser
synced 2025-12-22 11:13:46 +00:00
[PM-3919] Remove deprecated Angular functionality from ModalService (#6285)
Remove deprecated Angular functionality from ModalService so we can upgrade Angular.
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
import {
|
||||
ChangeDetectorRef,
|
||||
Component,
|
||||
ComponentFactoryResolver,
|
||||
EventEmitter,
|
||||
Input,
|
||||
Output,
|
||||
@@ -45,7 +44,6 @@ export class PolicyEditComponent {
|
||||
private policyApiService: PolicyApiServiceAbstraction,
|
||||
private i18nService: I18nService,
|
||||
private platformUtilsService: PlatformUtilsService,
|
||||
private componentFactoryResolver: ComponentFactoryResolver,
|
||||
private cdr: ChangeDetectorRef,
|
||||
private logService: LogService,
|
||||
) {}
|
||||
@@ -54,8 +52,7 @@ export class PolicyEditComponent {
|
||||
await this.load();
|
||||
this.loading = false;
|
||||
|
||||
const factory = this.componentFactoryResolver.resolveComponentFactory(this.policy.component);
|
||||
this.policyComponent = this.policyFormRef.createComponent(factory)
|
||||
this.policyComponent = this.policyFormRef.createComponent(this.policy.component)
|
||||
.instance as BasePolicyComponent;
|
||||
this.policyComponent.policy = this.policy;
|
||||
this.policyComponent.policyResponse = this.policyResponse;
|
||||
|
||||
Reference in New Issue
Block a user