[ACA-4355] [ADW] The sign out takes longer than in the past (#2081)

This commit is contained in:
siva kumar 2021-04-12 14:35:15 +05:30 committed by GitHub
parent 732e112f6b
commit e07a93c60f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 16 deletions

View File

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

View File

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

View File

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