RED-1734: Only show my dossiers quick filter
This commit is contained in:
parent
7697c54b19
commit
69dac27874
@ -26,6 +26,7 @@ import {
|
||||
processFilters
|
||||
} from '@shared/components/filters/popup-filter/utils/filter-utils';
|
||||
import { QuickFiltersComponent } from '../../../shared/components/filters/quick-filters/quick-filters.component';
|
||||
import { UserPreferenceService } from '../../../../services/user-preference.service';
|
||||
|
||||
@Component({
|
||||
selector: 'redaction-dossier-listing-screen',
|
||||
@ -70,6 +71,7 @@ export class DossierListingScreenComponent
|
||||
private readonly _translateService: TranslateService,
|
||||
private readonly _router: Router,
|
||||
private readonly _appStateService: AppStateService,
|
||||
private readonly _userPreferenceService: UserPreferenceService,
|
||||
protected readonly _injector: Injector
|
||||
) {
|
||||
super(_injector);
|
||||
@ -332,6 +334,10 @@ export class DossierListingScreenComponent
|
||||
label: 'dossier-listing.quick-filters.other',
|
||||
checker: (dw: DossierWrapper) => !dw.memberIds.includes(this.user.id)
|
||||
}
|
||||
];
|
||||
].filter(
|
||||
f =>
|
||||
f.label === 'dossier-listing.quick-filters.my-dossiers' ||
|
||||
this._userPreferenceService.areDevFeaturesEnabled
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user