mirror of
https://github.com/avatao-content/frontend-tutorial-framework
synced 2025-06-28 17:45:11 +00:00
Move live log checking logic to ProcessLogService
This commit is contained in:
@ -20,7 +20,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="tfw-ide">
|
||||
<app-ide (newLog)="setConsoleContent($event)"></app-ide>
|
||||
<app-ide (newLogs)="setConsoleContentIfNoLiveLogs($event)"></app-ide>
|
||||
</div>
|
||||
<div class="tfw-terminal">
|
||||
<div class="btn-group btn-group-sm flex-wrap tao-grid-center-left tfw-console-terminal-menu">
|
||||
|
@ -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