-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c870e04
commit 858c388
Showing
97 changed files
with
903 additions
and
254 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
<!-- Dev Utils --> | ||
<div | ||
*ngIf="config.useFakeBackend" | ||
*ngIf="appConfig.useFakeBackend" | ||
class="absolute t-[5px] w-full flex flex-row justify-end" | ||
style="z-index: 9999"> | ||
<app-fake-backend-user-switcher></app-fake-backend-user-switcher> | ||
</div> | ||
<app-e2e-dev-user-switcher | ||
*ngIf="config.useLocalBackend"></app-e2e-dev-user-switcher> | ||
*ngIf="appConfig.useLocalBackend"></app-e2e-dev-user-switcher> | ||
|
||
<app-toast-notifications></app-toast-notifications> | ||
<router-outlet></router-outlet> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
authority-portal-frontend/src/app/core/services/config/active-feature-set.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
/* | ||
* Copyright (c) 2024 sovity GmbH | ||
* | ||
* This program and the accompanying materials are made available under the | ||
* terms of the Apache License, Version 2.0 which is available at | ||
* https://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
* | ||
* Contributors: | ||
* sovity GmbH - initial implementation | ||
*/ | ||
import {Inject, Injectable} from '@angular/core'; | ||
import {APP_CONFIG, AppConfig} from './app-config'; | ||
import {UiFeature} from './profiles/ui-feature'; | ||
|
||
@Injectable({providedIn: 'root'}) | ||
export class ActiveFeatureSet { | ||
constructor(@Inject(APP_CONFIG) private config: AppConfig) {} | ||
|
||
usesMdsId(): boolean { | ||
return this.has('mds-id'); | ||
} | ||
|
||
usesBritishCatalogue(): boolean { | ||
return this.has('catalogue'); | ||
} | ||
|
||
isHomePageEnabled(): boolean { | ||
return this.has('enable-home'); | ||
} | ||
|
||
has(feature: UiFeature): boolean { | ||
return this.config.features.has(feature); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.