mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2025-02-01 08:48:04 +00:00
Update log console component
This commit is contained in:
parent
99df35282e
commit
3da59f20e0
@ -2,8 +2,7 @@
|
||||
<div class="consoleHeader">
|
||||
<span>Console</span>
|
||||
<div class="consoleMenu">
|
||||
<mat-icon>help_outline</mat-icon>
|
||||
<mat-icon>close</mat-icon>
|
||||
<mat-icon (click)="close()" class="closeButton">close</mat-icon>
|
||||
</div>
|
||||
</div>
|
||||
<div class="divider"></div>
|
||||
|
@ -74,3 +74,7 @@ input:focus{
|
||||
background-color: darkgrey;
|
||||
outline: 1px solid #263238;
|
||||
}
|
||||
|
||||
.closeButton {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { Component, OnInit, AfterViewInit, OnDestroy, Input, ViewChild, ElementRef } from '@angular/core';
|
||||
import { Component, OnInit, AfterViewInit, OnDestroy, Input, ViewChild, ElementRef, Output, EventEmitter } from '@angular/core';
|
||||
import { Subscription } from 'rxjs';
|
||||
import { ProjectWebServiceHandler } from '../../../handlers/project-web-service-handler';
|
||||
import { NodeService } from '../../../services/node.service';
|
||||
@ -20,6 +20,7 @@ import { LogEventsDataSource } from './log-events-datasource';
|
||||
export class LogConsoleComponent implements OnInit, AfterViewInit, OnDestroy {
|
||||
@Input() project: Project;
|
||||
@Input() server: Server;
|
||||
@Output() closeConsole = new EventEmitter<boolean>();
|
||||
@ViewChild('console', {static: false}) console: ElementRef;
|
||||
private nodeSubscription: Subscription;
|
||||
private linkSubscription: Subscription;
|
||||
@ -203,4 +204,8 @@ export class LogConsoleComponent implements OnInit, AfterViewInit, OnDestroy {
|
||||
y: ${drawing.y},
|
||||
z: ${drawing.z}`;
|
||||
}
|
||||
|
||||
close() {
|
||||
this.closeConsole.emit(false);
|
||||
}
|
||||
}
|
||||
|
@ -124,5 +124,5 @@
|
||||
<app-text-added [server]="server" [project]="project" (drawingSaved)="onDrawingSaved()"> </app-text-added>
|
||||
<app-text-edited [server]="server"></app-text-edited>
|
||||
<div [ngClass]="{ visible: !isConsoleVisible }">
|
||||
<app-log-console [server]="server" [project]="project"></app-log-console>
|
||||
<app-log-console [server]="server" [project]="project" (closeConsole)='toggleShowConsole($event)'></app-log-console>
|
||||
</div>
|
||||
|
Loading…
x
Reference in New Issue
Block a user