blob: be502ba74f0a66a8a29a3f9125dceb8fe616157e [file] [log] [blame]
/********************************************************************************
* Copyright (c) 2020 Contributors to the Eclipse Foundation
*
* See the NOTICE file(s) distributed with this work for additional
* information regarding copyright ownership.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0 which is available at
* http://www.eclipse.org/legal/epl-2.0.
*
* SPDX-License-Identifier: EPL-2.0
********************************************************************************/
import { Component, OnInit } from '@angular/core';
import { Globals } from '@app/shared/constants/globals';
// import { VersionInfo } from '../../model/version-info';
// import { VersionInfoService } from '../../services/version-info.service';
// import { Globals } from '../../common/globals';
@Component({
selector: 'app-version-info',
templateUrl: './version-info.component.html',
styleUrls: ['./version-info.component.css'],
})
export class VersionInfo implements OnInit {
currVersion: any = {
frontendVersion: '?',
backendVersion: '?',
dbVersion: '?',
};
// constructor(private _btbService: VersionInfoService) { }
ngOnInit() {
// this._btbService.loadBackendServerInfo().subscribe(vinfo => this.setVersionInfo(vinfo),
// error => console.log(error));
}
private setVersionInfo(vinfo: any) {
this.currVersion = vinfo;
this.currVersion.frontendVersion = Globals.FRONTEND_VERSION;
}
}