Browse Source
Merge pull request #17599 from abpframework/auto-merge/rel-7-3/2175
pull/17600/head
maliming
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with
29 additions and
7 deletions
-
modules/account/src/Volo.Abp.Account.Web/Pages/Account/LoggedOut.cshtml.cs
-
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
|
|
|
@ -1,5 +1,6 @@ |
|
|
|
using System.Threading.Tasks; |
|
|
|
using Microsoft.AspNetCore.Mvc; |
|
|
|
using NUglify.Helpers; |
|
|
|
|
|
|
|
namespace Volo.Abp.Account.Web.Pages.Account; |
|
|
|
|
|
|
|
@ -19,11 +20,26 @@ public class LoggedOutModel : AccountPageModel |
|
|
|
|
|
|
|
public virtual Task<IActionResult> OnGetAsync() |
|
|
|
{ |
|
|
|
NormalizeUrl(); |
|
|
|
return Task.FromResult<IActionResult>(Page()); |
|
|
|
} |
|
|
|
|
|
|
|
public virtual Task<IActionResult> OnPostAsync() |
|
|
|
{ |
|
|
|
NormalizeUrl(); |
|
|
|
return Task.FromResult<IActionResult>(Page()); |
|
|
|
} |
|
|
|
|
|
|
|
protected virtual void NormalizeUrl() |
|
|
|
{ |
|
|
|
if (!PostLogoutRedirectUri.IsNullOrWhiteSpace()) |
|
|
|
{ |
|
|
|
PostLogoutRedirectUri = Url.Content(GetRedirectUrl(PostLogoutRedirectUri)); |
|
|
|
} |
|
|
|
|
|
|
|
if(!SignOutIframeUrl.IsNullOrWhiteSpace()) |
|
|
|
{ |
|
|
|
SignOutIframeUrl = Url.Content(GetRedirectUrl(SignOutIframeUrl)); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
@ -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>(); |
|
|
|
|