From 714dd91890a31a15b8352a5d5721ae8ec337ff84 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johannes=20Grumb=C3=B6ck?= Date: Thu, 19 Aug 2021 10:51:57 +0200 Subject: [PATCH] fix(chore): 2020 is over and added version to sidebar (#157) --- mkdocs.yml | 2 +- .../shared/profile-sidebar/profile-sidebar.component.html | 2 +- .../shared/profile-sidebar/profile-sidebar.component.ts | 3 +++ src/app/components/shared/tray-menu/tray-menu.component.ts | 2 +- 4 files changed, 6 insertions(+), 3 deletions(-) diff --git a/mkdocs.yml b/mkdocs.yml index d9f8f221d..4d795b239 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -2,7 +2,7 @@ site_name: Leapp site_url: https://example.com/ repo_url: https://github.com/Noovolari/leapp site_description: 'Leapp is a tool for developers to manage, secure, and gain access to any cloud. From setting up your access data to activating a session, Leapp can help manage the underlying assets to let you use your provider CLI or SDK seamlessy.' -copyright: '© 2020 Noovolari, All rights reserved. | Powered by beSharp' +copyright: '© 2021 Noovolari, All rights reserved. | Powered by beSharp' nav: - Overview: index.md diff --git a/src/app/components/shared/profile-sidebar/profile-sidebar.component.html b/src/app/components/shared/profile-sidebar/profile-sidebar.component.html index 624d7fc8d..06fcb68cd 100644 --- a/src/app/components/shared/profile-sidebar/profile-sidebar.component.html +++ b/src/app/components/shared/profile-sidebar/profile-sidebar.component.html @@ -18,6 +18,6 @@

- Leapp | © 2020 Noovolari + Leapp {{version}} | © 2021 Noovolari
diff --git a/src/app/components/shared/profile-sidebar/profile-sidebar.component.ts b/src/app/components/shared/profile-sidebar/profile-sidebar.component.ts index 4554ce3c1..97098ff2b 100644 --- a/src/app/components/shared/profile-sidebar/profile-sidebar.component.ts +++ b/src/app/components/shared/profile-sidebar/profile-sidebar.component.ts @@ -15,6 +15,7 @@ export class ProfileSidebarComponent implements OnInit { profileOpen = false; test: any; + version; constructor( private appService: AppService, @@ -30,6 +31,8 @@ export class ProfileSidebarComponent implements OnInit { * Init the profile sidebar using the event emitter status listener */ ngOnInit() { + this.version = this.appService.getApp().getVersion(); + this.appService.profileOpen.subscribe(res => { this.profileOpen = res; if (this.profileOpen) { diff --git a/src/app/components/shared/tray-menu/tray-menu.component.ts b/src/app/components/shared/tray-menu/tray-menu.component.ts index d11c72ff3..e9a260acd 100644 --- a/src/app/components/shared/tray-menu/tray-menu.component.ts +++ b/src/app/components/shared/tray-menu/tray-menu.component.ts @@ -106,7 +106,7 @@ export class TrayMenuComponent implements OnInit, OnDestroy { { label: 'About', type: 'normal', click: () => { this.appService.getCurrentWindow().show(); - this.appService.getDialog().showMessageBox({icon: __dirname + `/assets/images/Leapp.png`, message: `Leapp.\n` + `Version ${version} (${version})\n` + '© 2020 Noovolari', buttons: ['Ok']}); + this.appService.getDialog().showMessageBox({icon: __dirname + `/assets/images/Leapp.png`, message: `Leapp\n` + `Version ${version} (${version})\n` + '© 2021 Noovolari', buttons: ['Ok']}); } }, {type: 'separator'},