WEB-511 Update login page logo to use tenant-specific branding (#2926)
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import { Component, OnInit, inject } from '@angular/core';
|
||||
import { UntypedFormControl, ReactiveFormsModule } from '@angular/forms';
|
||||
import { SettingsService } from 'app/settings/settings.service';
|
||||
import { AlertService } from 'app/core/alert/alert.service';
|
||||
import { MatFormField, MatPrefix, MatLabel } from '@angular/material/form-field';
|
||||
import { FaIconComponent } from '@fortawesome/angular-fontawesome';
|
||||
import { STANDALONE_SHARED_IMPORTS } from 'app/standalone-shared.module';
|
||||
@@ -17,6 +18,7 @@ import { STANDALONE_SHARED_IMPORTS } from 'app/standalone-shared.module';
|
||||
})
|
||||
export class TenantSelectorComponent implements OnInit {
|
||||
private settingsService = inject(SettingsService);
|
||||
private alertService = inject(AlertService);
|
||||
|
||||
/** Tenant selector form control. */
|
||||
tenantSelector = new UntypedFormControl();
|
||||
@@ -40,6 +42,7 @@ export class TenantSelectorComponent implements OnInit {
|
||||
|
||||
setTenantIdentifier(): void {
|
||||
this.settingsService.setTenantIdentifier(this.tenantSelector.value);
|
||||
this.alertService.alert({ type: 'Tenant Changed', message: this.tenantSelector.value });
|
||||
}
|
||||
|
||||
allowSelection(): boolean {
|
||||
|
||||
Reference in New Issue
Block a user