oggui/ogWebconsole/src/app/components/ogboot/pxe/show-template-content/show-template-content.compo...

28 lines
851 B
TypeScript

import { Component, Inject } from '@angular/core';
import {MAT_DIALOG_DATA, MatDialogRef} from "@angular/material/dialog";
import { HttpClient } from "@angular/common/http";
import { ConfigService } from "@services/config.service";
@Component({
selector: 'app-show-template-content',
templateUrl: './show-template-content.component.html',
styleUrl: './show-template-content.component.css'
})
export class ShowTemplateContentComponent {
baseUrl: string;
displayedColumns: string[] = ['property', 'value'];
generalData: any[] = [];
constructor(
@Inject(MAT_DIALOG_DATA) public data: any,
private http: HttpClient,
private configService: ConfigService,
public dialogRef: MatDialogRef<ShowTemplateContentComponent>
) {
this.baseUrl = this.configService.apiUrl;
}
close(): void {
this.dialogRef.close();
}
}