mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-05-12 17:04:46 +00:00
[ACA-4355] [ADW] The sign out takes longer than in the past (#2081)
This commit is contained in:
parent
732e112f6b
commit
e07a93c60f
@ -179,11 +179,6 @@
|
||||
"description": "Unique identifier",
|
||||
"type": "string"
|
||||
},
|
||||
"provider": {
|
||||
"description": "Define on which system the user should be authenticate",
|
||||
"type": "string",
|
||||
"enum": ["BPM", "ECM", "ALL"]
|
||||
},
|
||||
"icon": {
|
||||
"description": "Element icon",
|
||||
"type": "string"
|
||||
|
@ -7,11 +7,11 @@
|
||||
<div *ngFor="let group of groups; trackBy: trackById" class="section" [ngClass]="'section--' + mode">
|
||||
<ng-container *ngSwitchCase="'expanded'">
|
||||
<mat-list-item *ngFor="let item of group.items; trackBy: trackById">
|
||||
<ng-container *ngIf="isLoggedIn(item.provider) && !item.component">
|
||||
<ng-container *ngIf="!item.component">
|
||||
<app-expand-menu [item]="item"></app-expand-menu>
|
||||
</ng-container>
|
||||
|
||||
<ng-container *ngIf="isLoggedIn(item.provider) && item.component">
|
||||
<ng-container *ngIf="item.component">
|
||||
<adf-dynamic-component [data]="{ item: item, state: 'expanded' }" [id]="item.component"></adf-dynamic-component>
|
||||
</ng-container>
|
||||
</mat-list-item>
|
||||
@ -19,11 +19,11 @@
|
||||
|
||||
<ng-container *ngSwitchCase="'collapsed'">
|
||||
<div class="list-item" *ngFor="let item of group.items; trackBy: trackById">
|
||||
<ng-container *ngIf="isLoggedIn(item.provider) && !item.component">
|
||||
<ng-container *ngIf="!item.component">
|
||||
<app-button-menu [item]="item"></app-button-menu>
|
||||
</ng-container>
|
||||
|
||||
<ng-container *ngIf="isLoggedIn(item.provider) && item.component">
|
||||
<ng-container *ngIf="item.component">
|
||||
<adf-dynamic-component [data]="{ item: item, state: 'collapsed' }" [id]="item.component"> </adf-dynamic-component>
|
||||
</ng-container>
|
||||
</div>
|
||||
|
@ -25,7 +25,6 @@
|
||||
|
||||
import { Component, Input, OnInit, ViewEncapsulation, OnDestroy } from '@angular/core';
|
||||
import { NavBarGroupRef } from '@alfresco/adf-extensions';
|
||||
import { AuthenticationService } from '@alfresco/adf-core';
|
||||
import { Store } from '@ngrx/store';
|
||||
import { AppStore, getSideNavState } from '@alfresco/aca-shared/store';
|
||||
import { Subject } from 'rxjs';
|
||||
@ -46,7 +45,7 @@ export class SidenavComponent implements OnInit, OnDestroy {
|
||||
groups: Array<NavBarGroupRef> = [];
|
||||
private onDestroy$ = new Subject<boolean>();
|
||||
|
||||
constructor(private store: Store<AppStore>, private extensions: AppExtensionService, private authService: AuthenticationService) {}
|
||||
constructor(private store: Store<AppStore>, private extensions: AppExtensionService) {}
|
||||
|
||||
ngOnInit() {
|
||||
this.store
|
||||
@ -57,11 +56,6 @@ export class SidenavComponent implements OnInit, OnDestroy {
|
||||
});
|
||||
}
|
||||
|
||||
isLoggedIn(provider: string): boolean {
|
||||
if (provider === undefined) return true;
|
||||
return this.authService.isLoggedInWith(provider);
|
||||
}
|
||||
|
||||
trackById(_: number, obj: { id: string }) {
|
||||
return obj.id;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user