Merge branch 'RED-7562' into 'master'

RED-7562: Disabled the other tabs as well.

See merge request redactmanager/red-ui!100
This commit is contained in:
Dan Percic 2023-09-21 09:47:02 +02:00
commit cee4fea221

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