add *ngIf directive to make feature-management-component destroyable

pull/17586/head
Sinan997 2 years ago
parent a12315f0d9
commit cb956907fe

@ -4,7 +4,8 @@
<i class="fa fa-cog" aria-hidden="true"></i>
{{ 'AbpFeatureManagement::ManageHostFeatures' | abpLocalization }}
</button>
<abp-feature-management
<ng-container *ngIf="visibleFeatures">
<abp-feature-management
*abpReplaceableTemplate="{
inputs: {
providerName: { value: 'T' },
@ -17,5 +18,6 @@
[(visible)]="visibleFeatures"
providerName="T"
[providerKey]="providerKey"
>
>
</abp-feature-management>
</ng-container>

@ -9,9 +9,7 @@ export class FeatureManagementTabComponent {
providerKey: string;
openFeaturesModal() {
setTimeout(() => {
this.visibleFeatures = true;
}, 0);
this.visibleFeatures = true;
}
onVisibleFeaturesChange = (value: boolean) => {

@ -66,8 +66,6 @@ export class FeatureManagementComponent
this.openModal();
return;
}
this.selectedGroupDisplayName = undefined;
}
@Output() readonly visibleChange = new EventEmitter<boolean>();

Loading…
Cancel
Save