RED-7562: Disabled the other tabs as well.

This commit is contained in:
Nicoleta Panaghiu 2023-09-21 10:45:41 +03:00
parent 9166786074
commit 2a23925974

View File

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