mirror of
https://dev.azure.com/hugendubel/ISA/_git/ISA-Frontend
synced 2025-12-31 09:37:15 +01:00
Warenausgabe Breadcrumb Header: Hide Filter on History and Edit Page
This commit is contained in:
@@ -22,7 +22,10 @@ export class ContentHeaderService {
|
||||
breadcrumbs: [],
|
||||
filter: ['/remission/create', '/remission/started', '/shelf'],
|
||||
};
|
||||
blackList = { breadcrumbs: ['/dashboard', '/branch/main'], filter: [] };
|
||||
blackList = {
|
||||
breadcrumbs: ['/dashboard', '/branch/main'],
|
||||
filter: ['/history', 'edit'],
|
||||
};
|
||||
|
||||
constructor(
|
||||
private locationService: LocationService,
|
||||
@@ -115,7 +118,11 @@ export class ContentHeaderService {
|
||||
(whitelistetUrl) =>
|
||||
whitelistetUrl.includes(url) || url.includes(whitelistetUrl)
|
||||
);
|
||||
return isOnWhiteList;
|
||||
const isOnBlacklist = applicableBlacklist.find(
|
||||
(blackListUrl) =>
|
||||
blackListUrl.includes(url) || url.includes(blackListUrl)
|
||||
);
|
||||
return isOnWhiteList && !isOnBlacklist;
|
||||
}
|
||||
|
||||
if (type === 'breadcrumbs') {
|
||||
|
||||
Reference in New Issue
Block a user