Refactor project to use config file

This commit is contained in:
Kristóf Tóth
2018-03-21 16:32:56 +01:00
parent 1b2b1c9f8d
commit 0682e53511
5 changed files with 40 additions and 16 deletions

View File

@ -3,6 +3,7 @@ import { DeploymentNotificationService } from '../services/deployment-notificati
import { Subscription } from 'rxjs/Subscription';
import { WebSocketService } from '../services/websocket.service';
import { LayoutCommand } from './layout-command';
import { config } from '../config';
@Component({
selector: 'app-dashboard',
@ -12,7 +13,7 @@ import { LayoutCommand } from './layout-command';
export class DashboardComponent implements OnInit, OnDestroy {
deploying = false;
deploymentNotificationSubscription: Subscription;
layout = 'vraw-open';
layout: string = config.dashboard.defaultLayout;
command_handlers = {'layout': this.layoutHandler.bind(this)};
constructor(private deploymentNotificationService: DeploymentNotificationService,