Browse Source
Merge pull request #17586 from abpframework/issue-17585
Fix incorrect tab selection on modal opening feature management
pull/17595/head
Mahmut Gundogdu
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with
13 additions and
7 deletions
-
npm/ng-packs/packages/feature-management/src/lib/components/feature-management-tab/feature-management-tab.component.html
-
npm/ng-packs/packages/feature-management/src/lib/components/feature-management-tab/feature-management-tab.component.ts
-
npm/ng-packs/packages/feature-management/src/lib/components/feature-management/feature-management.component.ts
|
|
|
@ -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) => { |
|
|
|
|
|
|
|
@ -55,11 +55,17 @@ export class FeatureManagementComponent |
|
|
|
} |
|
|
|
|
|
|
|
set visible(value: boolean) { |
|
|
|
if (this._visible === value) return; |
|
|
|
if (this._visible === value) { |
|
|
|
return; |
|
|
|
} |
|
|
|
|
|
|
|
this._visible = value; |
|
|
|
this.visibleChange.emit(value); |
|
|
|
if (value) this.openModal(); |
|
|
|
|
|
|
|
if (value) { |
|
|
|
this.openModal(); |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
@Output() readonly visibleChange = new EventEmitter<boolean>(); |
|
|
|
|