Move live log checking logic to ProcessLogService

This commit is contained in:
Kristóf Tóth
2018-05-30 11:14:48 +02:00
parent fc10db6cac
commit c889de0b05
5 changed files with 17 additions and 13 deletions

View File

@ -102,10 +102,8 @@ export class DashboardComponent implements OnInit, OnDestroy {
this.selectedTerminalMenuItem = item;
}
setConsoleContent(logs: any) {
if (!config.console.showLiveLogs) {
this.processLogService.newLog.next(logs);
}
setConsoleContentIfNoLiveLogs(logs: any) {
this.processLogService.emitNewLogsIfNoLiveLogs(logs);
if (config.ide.showConsoleOnDeploy) {
this.selectTerminalMenuItem('console');
}