Skip to content
Snippets Groups Projects
Commit b0ebd5d4 authored by NOUMANE's avatar NOUMANE Committed by pybelecalo
Browse files

[US TRTL-530] make platform name configurable

parent 7a2feee1
No related branches found
No related tags found
No related merge requests found
<div class="row dialog">
<h4 class="col-12 p-0 m-0">{{ 'SELECT-TENANT.DIALOG_TITLE' | translate }}</h4>
<h4 class="col-12 p-0 m-0">{{ 'SELECT-TENANT.DIALOG_TITLE' | translate }} {{platformName}}</h4>
<h5 class="col-12 p-0">{{ 'SELECT-TENANT.DIALOG_SUBTITLE' | translate }}</h5>
<p class="col-12 p-0 mt-5">{{ 'SELECT-TENANT.DIALOG_INSTRUCTIONS' | translate }} <span class="asterix">*</span></p>
......
......@@ -2,25 +2,31 @@ import { Component, Inject, OnInit } from '@angular/core';
import { MAT_DIALOG_DATA } from '@angular/material/dialog';
import { MatDialogConfig, MatDialogRef } from '@angular/material/dialog';
import { MenuOption } from '../../navbar';
import { StartupService } from './../../../startup.service';
@Component({
selector: 'vitamui-common-select-tenant-dialog',
templateUrl: './select-tenant-dialog.component.html',
styleUrls: ['./select-tenant-dialog.component.scss']
styleUrls: ['./select-tenant-dialog.component.scss'],
})
export class SelectTenantDialogComponent implements OnInit {
public static readonly SELECT_TENANT_DIALOG_CONFIG: MatDialogConfig = {
maxWidth: 550,
disableClose: true,
};
public selectedTenant: MenuOption;
public tenants: MenuOption[];
public platformName: string;
constructor(private dialogRef: MatDialogRef<SelectTenantDialogComponent>, @Inject(MAT_DIALOG_DATA) private data: any) { }
constructor(
private dialogRef: MatDialogRef<SelectTenantDialogComponent>,
@Inject(MAT_DIALOG_DATA) private data: any,
private startupService: StartupService,
) {}
ngOnInit() {
this.tenants = this.data.tenants;
this.platformName = this.startupService.getPlatformName();
}
public closeDialog(): void {
......@@ -28,5 +34,4 @@ export class SelectTenantDialogComponent implements OnInit {
this.dialogRef.close(this.selectedTenant.value);
}
}
}
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment