Browse Source

Merge pull request #17599 from abpframework/auto-merge/rel-7-3/2175

pull/17600/head
maliming 2 years ago
committed by GitHub
parent
commit
87c121e48c
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 16
      modules/account/src/Volo.Abp.Account.Web/Pages/Account/LoggedOut.cshtml.cs
  2. 6
      npm/ng-packs/packages/feature-management/src/lib/components/feature-management-tab/feature-management-tab.component.html
  3. 4
      npm/ng-packs/packages/feature-management/src/lib/components/feature-management-tab/feature-management-tab.component.ts
  4. 10
      npm/ng-packs/packages/feature-management/src/lib/components/feature-management/feature-management.component.ts

16
modules/account/src/Volo.Abp.Account.Web/Pages/Account/LoggedOut.cshtml.cs

@ -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));
}
}
}

6
npm/ng-packs/packages/feature-management/src/lib/components/feature-management-tab/feature-management-tab.component.html

@ -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>

4
npm/ng-packs/packages/feature-management/src/lib/components/feature-management-tab/feature-management-tab.component.ts

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

10
npm/ng-packs/packages/feature-management/src/lib/components/feature-management/feature-management.component.ts

@ -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>();

Loading…
Cancel
Save