Updating version to 3.0

This commit is contained in:
piotrpekala7 2021-04-28 15:11:18 +02:00
parent 84f7fabdc8
commit ab6c43c167
2 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
{
"name": "gns3-web-ui",
"version": "2.2.21dev",
"version": "3.0.0dev",
"author": {
"name": "GNS3 Technology Inc.",
"email": "developers@gns3.com"

View File

@ -154,7 +154,7 @@ export class AddServerDialogComponent implements OnInit {
const server: Server = Object.assign({}, this.serverForm.value);
this.serverService.checkServerVersion(server).subscribe(
(serverInfo) => {
if (serverInfo.version.split('.')[1] >= 2 && serverInfo.version.split('.')[0] >= 2) {
if (serverInfo.version.split('.')[0] >= 3) {
this.dialogRef.close(server);
this.toasterService.success(`Server ${server.name} added.`);
} else {