diff options
Diffstat (limited to 'src/pybind/mgr/dashboard/frontend/src/app/shared/components/custom-login-banner/custom-login-banner.component.ts')
-rw-r--r-- | src/pybind/mgr/dashboard/frontend/src/app/shared/components/custom-login-banner/custom-login-banner.component.ts | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/pybind/mgr/dashboard/frontend/src/app/shared/components/custom-login-banner/custom-login-banner.component.ts b/src/pybind/mgr/dashboard/frontend/src/app/shared/components/custom-login-banner/custom-login-banner.component.ts new file mode 100644 index 000000000..ad0d54688 --- /dev/null +++ b/src/pybind/mgr/dashboard/frontend/src/app/shared/components/custom-login-banner/custom-login-banner.component.ts @@ -0,0 +1,20 @@ +import { Component, OnInit } from '@angular/core'; + +import _ from 'lodash'; +import { Observable } from 'rxjs'; + +import { CustomLoginBannerService } from '~/app/shared/api/custom-login-banner.service'; + +@Component({ + selector: 'cd-custom-login-banner', + templateUrl: './custom-login-banner.component.html', + styleUrls: ['./custom-login-banner.component.scss'] +}) +export class CustomLoginBannerComponent implements OnInit { + bannerText$: Observable<string>; + constructor(private customLoginBannerService: CustomLoginBannerService) {} + + ngOnInit(): void { + this.bannerText$ = this.customLoginBannerService.getBannerText(); + } +} |