Elffuss BraidHub

kikocis/dataspace-portal public

main · 905 BRawPermalink
1/*
2 * Copyright (c) 2024 sovity GmbH
3 *
4 * This program and the accompanying materials are made available under the
5 * terms of the Apache License, Version 2.0 which is available at
6 * https://www.apache.org/licenses/LICENSE-2.0
7 *
8 * SPDX-License-Identifier: Apache-2.0
9 *
10 * Contributors:
11 * sovity GmbH - initial implementation
12 */
13import {Component} from '@angular/core';
14import {Observable} from 'rxjs';
15import {DeploymentEnvironmentDto} from '@sovity.de/authority-portal-client';
16import {GlobalStateUtils} from 'src/app/core/global-state/global-state-utils';
17
18@Component({
19 selector: 'app-env-banner',
20 templateUrl: './env-banner.component.html',
21})
22export class EnvBannerComponent {
23 selectedEnvironment$!: Observable<DeploymentEnvironmentDto>;
24
25 constructor(private globalStateUtils: GlobalStateUtils) {
26 this.selectedEnvironment$ = this.globalStateUtils.deploymentEnvironment$;
27 }
28}