mirror of
https://github.com/everoddandeven/monerod-gui.git
synced 2024-12-22 11:39:25 +00:00
Fix logs formatting
This commit is contained in:
parent
9752f27cc2
commit
b863e00172
2 changed files with 7 additions and 0 deletions
|
@ -20,11 +20,14 @@
|
|||
|
||||
<div *ngIf="lines.length > 0" class="terminal bg-dark text-light p-3 m-4" #logTerminal>
|
||||
<div class="terminal-output" id="terminalOutput">
|
||||
{{ logs }}
|
||||
<!--
|
||||
@for(line of lines; track line) {
|
||||
<ng-container>
|
||||
<div>{{ line }}</div>
|
||||
</ng-container>
|
||||
}
|
||||
-->
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -51,6 +51,10 @@ export class LogsComponent implements AfterViewInit {
|
|||
return this.logsService.lines;
|
||||
}
|
||||
|
||||
public get logs(): string {
|
||||
return this.lines.join("\n");
|
||||
}
|
||||
|
||||
private scrollToBottom(): void {
|
||||
this.ngZone.run(() => {
|
||||
this.lines;
|
||||
|
|
Loading…
Reference in a new issue