add is_documine env var

This commit is contained in:
Dan Percic 2023-07-18 16:43:40 +03:00
parent 699e74a867
commit e69f8b3f0d
3 changed files with 4 additions and 3 deletions

View File

@ -1,7 +1,7 @@
<div class="tenant-section flex-column">
<a class="logo">
<div class="actions flex">
<iqser-logo icon="red:logo"></iqser-logo>
<iqser-logo [icon]="config.IS_DOCUMINE ? 'red:documine-logo' : 'red:logo'"></iqser-logo>
<h1 class="app-name">{{ titleService.getTitle() }}</h1>
</div>
</a>
@ -21,7 +21,7 @@
*ngFor="let stored of storedTenants"
class="d-flex pointer mat-elevation-z2 card stored-tenant-card mt-10"
>
<iqser-logo class="card-icon" icon="red:logo" mat-card-image></iqser-logo>
<iqser-logo [icon]="config.IS_DOCUMINE ? 'red:documine-logo' : 'red:logo'" class="card-icon" mat-card-image></iqser-logo>
<div class="card-content flex-column">
<span class="heading">{{ stored.tenantId }}</span>

View File

@ -3,12 +3,12 @@ import { FormBuilder, Validators } from '@angular/forms';
import { TenantsService } from '../services';
import { LoadingService } from '../../loading';
import { Title } from '@angular/platform-browser';
import { getConfig } from '../../services';
import { KeycloakService } from 'keycloak-angular';
import { BASE_HREF } from '../../utils';
import { getKeycloakOptions } from '../keycloak-initializer';
import { KeycloakStatusService } from '../services/keycloak-status.service';
import { NGXLogger } from 'ngx-logger';
import { getConfig } from '../../services';
@Component({
templateUrl: './tenant-select.component.html',

View File

@ -1,6 +1,7 @@
export interface IqserAppConfig {
readonly API_URL: string;
readonly APP_NAME: string;
readonly IS_DOCUMINE: boolean;
readonly FRONTEND_APP_VERSION: string;
readonly OAUTH_CLIENT_ID: string;
readonly OAUTH_IDP_HINT?: string;