From 2a239259742c6c2c15b5d7176736b72766cd5edb Mon Sep 17 00:00:00 2001 From: Nicoleta Panaghiu Date: Thu, 21 Sep 2023 10:45:41 +0300 Subject: [PATCH] RED-7562: Disabled the other tabs as well. --- .../base-entity-screen/base-entity-screen.component.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/apps/red-ui/src/app/modules/admin/base-entity-screen/base-entity-screen.component.ts b/apps/red-ui/src/app/modules/admin/base-entity-screen/base-entity-screen.component.ts index e00af9029..6772443c4 100644 --- a/apps/red-ui/src/app/modules/admin/base-entity-screen/base-entity-screen.component.ts +++ b/apps/red-ui/src/app/modules/admin/base-entity-screen/base-entity-screen.component.ts @@ -36,11 +36,7 @@ export class BaseEntityScreenComponent implements OnInit { this.canDeleteEntity$ = entity$.pipe(map(entity => this._permissionsService.canDeleteEntities(entity))); this.disabledItems$ = entity$.pipe( map(entity => - entity.hasDictionary - ? !entity.dossierDictionaryOnly - ? [] - : ['dictionary'] - : ['dictionary', 'false-positive', 'false-recommendations'], + entity.hasDictionary && !entity.dossierDictionaryOnly ? [] : ['dictionary', 'false-positive', 'false-recommendations'], ), ); }