From bd8bb1a36af51a3bae249d247017ccaf934ab7a6 Mon Sep 17 00:00:00 2001 From: Thomas Kaul <4159106+dtslvr@users.noreply.github.com> Date: Thu, 1 Jun 2023 19:38:38 +0200 Subject: [PATCH] Feature/remove ghostfolio in numbers section from about page (#2029) * Remove Ghostfolio in Numbers section * Update changelog --- CHANGELOG.md | 6 ++ .../app/pages/about/about-page.component.ts | 13 +--- .../src/app/pages/about/about-page.html | 77 +------------------ .../src/app/pages/about/about-page.module.ts | 10 +-- 4 files changed, 10 insertions(+), 96 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e7955e442..4f14d2a5c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## Unreleased + +### Changed + +- Removed the _Ghostfolio in Numbers_ section from the about page + ## 1.275.0 - 2023-05-30 ### Changed diff --git a/apps/client/src/app/pages/about/about-page.component.ts b/apps/client/src/app/pages/about/about-page.component.ts index 69f8eb093..5790d663d 100644 --- a/apps/client/src/app/pages/about/about-page.component.ts +++ b/apps/client/src/app/pages/about/about-page.component.ts @@ -3,7 +3,7 @@ import { environment } from '@ghostfolio/client/../environments/environment'; import { DataService } from '@ghostfolio/client/services/data.service'; import { UserService } from '@ghostfolio/client/services/user/user.service'; import { DEFAULT_LANGUAGE_CODE } from '@ghostfolio/common/config'; -import { Statistics, User } from '@ghostfolio/common/interfaces'; +import { User } from '@ghostfolio/common/interfaces'; import { hasPermission, permissions } from '@ghostfolio/common/permissions'; import { Subject } from 'rxjs'; import { takeUntil } from 'rxjs/operators'; @@ -17,10 +17,8 @@ import { takeUntil } from 'rxjs/operators'; export class AboutPageComponent implements OnDestroy, OnInit { public defaultLanguageCode = DEFAULT_LANGUAGE_CODE; public hasPermissionForBlog: boolean; - public hasPermissionForStatistics: boolean; public hasPermissionForSubscription: boolean; public isLoggedIn: boolean; - public statistics: Statistics; public user: User; public version = environment.version; @@ -31,24 +29,17 @@ export class AboutPageComponent implements OnDestroy, OnInit { private dataService: DataService, private userService: UserService ) { - const { globalPermissions, statistics } = this.dataService.fetchInfo(); + const { globalPermissions } = this.dataService.fetchInfo(); this.hasPermissionForBlog = hasPermission( globalPermissions, permissions.enableBlog ); - this.hasPermissionForStatistics = hasPermission( - globalPermissions, - permissions.enableStatistics - ); - this.hasPermissionForSubscription = hasPermission( globalPermissions, permissions.enableSubscription ); - - this.statistics = statistics; } public ngOnInit() { diff --git a/apps/client/src/app/pages/about/about-page.html b/apps/client/src/app/pages/about/about-page.html index 6030ce0e4..c761b9aed 100644 --- a/apps/client/src/app/pages/about/about-page.html +++ b/apps/client/src/app/pages/about/about-page.html @@ -38,7 +38,7 @@ This instance is running Ghostfolio {{ version }}. - Check the system status at status.ghostfol.io -
-
-

Ghostfolio in Numbers

- - -
-
- Active Users -
-
- New Users -
-
- Active Users -
- - - -
-
-
-
-
-