mirror of
https://github.com/avatao-content/frontend-tutorial-framework
synced 2025-07-01 06:06:22 +00:00
Move live log checking logic to ProcessLogService
This commit is contained in:
@ -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');
|
||||
}
|
||||
|
Reference in New Issue
Block a user