Fix for footer

This commit is contained in:
piotrpekala7 2020-04-01 23:51:13 +02:00
parent b424abb600
commit f722872a94
4 changed files with 6 additions and 4 deletions

View File

@ -1,6 +1,6 @@
GNS3 WebUI is web implementation of user interface for GNS3 software. GNS3 WebUI is web implementation of user interface for GNS3 software.
Current version: GNS3 Web UI 2019.2.0 v11 Current version: GNS3 Web UI 2020.2.0
What's New What's New
- Support for suspended status added - Support for suspended status added

View File

@ -74,7 +74,7 @@ describe('LogConsoleComponent', () => {
component.handleCommand(); component.handleCommand();
expect(component.showMessage).toHaveBeenCalledWith({type: 'command', message: 'Current version: 2019.2.0'}); expect(component.showMessage).toHaveBeenCalledWith({type: 'command', message: 'Current version: 2020.1.0-alpha.1'});
}); });
it('should call show message when unknown command entered', () => { it('should call show message when unknown command entered', () => {

View File

@ -15,6 +15,7 @@ import { LogEvent } from '../../../models/logEvent';
import { ResizeEvent } from 'angular-resizable-element'; import { ResizeEvent } from 'angular-resizable-element';
import { ThemeService } from '../../../services/theme.service'; import { ThemeService } from '../../../services/theme.service';
import { FormControl } from '@angular/forms'; import { FormControl } from '@angular/forms';
import { version } from '../../../version';
@Component({ @Component({
@ -29,6 +30,7 @@ export class LogConsoleComponent implements OnInit, AfterViewInit, OnDestroy {
@ViewChild('console', {static: false}) console: ElementRef; @ViewChild('console', {static: false}) console: ElementRef;
private version = version;
private nodeSubscription: Subscription; private nodeSubscription: Subscription;
private linkSubscription: Subscription; private linkSubscription: Subscription;
private drawingSubscription: Subscription; private drawingSubscription: Subscription;
@ -155,7 +157,7 @@ export class LogConsoleComponent implements OnInit, AfterViewInit, OnDestroy {
if (this.command === 'help' || this.command === '') { if (this.command === 'help' || this.command === '') {
this.showCommand("Available commands: help, version, console {node name}, start all, start {node name}, stop all, stop {node name}, suspend all, suspend {node name}, reload all, reload {node name}, show {node name}.") this.showCommand("Available commands: help, version, console {node name}, start all, start {node name}, stop all, stop {node name}, suspend all, suspend {node name}, reload all, reload {node name}, show {node name}.")
} else if (this.command === 'version') { } else if (this.command === 'version') {
this.showCommand("Current version: 2019.2.0"); this.showCommand("Current version: " + this.version);
} else if (this.command === 'start all') { } else if (this.command === 'start all') {
this.showCommand("Starting all nodes..."); this.showCommand("Starting all nodes...");
this.nodeService.startAll(this.server, this.project).subscribe(() => { this.nodeService.startAll(this.server, this.project).subscribe(() => {

View File

@ -35,5 +35,5 @@
<app-progress></app-progress> <app-progress></app-progress>
<footer class="footer mat-app-background"> <footer class="footer mat-app-background">
GNS3 Web UI &copy; 2019 - v{{ uiVersion }} GNS3 Web UI &copy; 2020 - v{{ uiVersion }}
</footer> </footer>