From ad42c0bf284b4a5db94cbe8b6d5f5033133381cd Mon Sep 17 00:00:00 2001 From: Thomas Kaul <4159106+dtslvr@users.noreply.github.com> Date: Sun, 18 Feb 2024 08:53:01 +0100 Subject: [PATCH] Enable FAQ link for self-hoster (#3015) --- apps/api/src/app/info/info.service.ts | 4 ---- .../services/configuration/configuration.service.ts | 1 - .../src/services/interfaces/environment.interface.ts | 1 - apps/client/src/app/app.component.html | 2 +- apps/client/src/app/app.component.ts | 6 ------ .../about/overview/about-overview-page.component.ts | 6 ------ .../app/pages/about/overview/about-overview-page.html | 10 ++++++++-- .../pages/faq/overview/faq-overview-page.component.ts | 1 - .../src/app/pages/faq/overview/faq-overview-page.html | 10 +++++----- 9 files changed, 14 insertions(+), 27 deletions(-) diff --git a/apps/api/src/app/info/info.service.ts b/apps/api/src/app/info/info.service.ts index 20047fcd0..de4a870d2 100644 --- a/apps/api/src/app/info/info.service.ts +++ b/apps/api/src/app/info/info.service.ts @@ -60,10 +60,6 @@ export class InfoService { const globalPermissions: string[] = []; - if (this.configurationService.get('ENABLE_FEATURE_BLOG')) { - globalPermissions.push(permissions.enableBlog); - } - if (this.configurationService.get('ENABLE_FEATURE_FEAR_AND_GREED_INDEX')) { if (this.configurationService.get('ENABLE_FEATURE_SUBSCRIPTION')) { info.fearAndGreedDataSource = encodeDataSource( diff --git a/apps/api/src/services/configuration/configuration.service.ts b/apps/api/src/services/configuration/configuration.service.ts index 83a9825dc..61a54daa1 100644 --- a/apps/api/src/services/configuration/configuration.service.ts +++ b/apps/api/src/services/configuration/configuration.service.ts @@ -27,7 +27,6 @@ export class ConfigurationService { DATA_SOURCES: json({ default: [DataSource.COINGECKO, DataSource.MANUAL, DataSource.YAHOO] }), - ENABLE_FEATURE_BLOG: bool({ default: false }), ENABLE_FEATURE_FEAR_AND_GREED_INDEX: bool({ default: false }), ENABLE_FEATURE_READ_ONLY_MODE: bool({ default: false }), ENABLE_FEATURE_SOCIAL_LOGIN: bool({ default: false }), diff --git a/apps/api/src/services/interfaces/environment.interface.ts b/apps/api/src/services/interfaces/environment.interface.ts index d380b31a7..54abe22be 100644 --- a/apps/api/src/services/interfaces/environment.interface.ts +++ b/apps/api/src/services/interfaces/environment.interface.ts @@ -15,7 +15,6 @@ export interface Environment extends CleanedEnvAccessors { DATA_SOURCE_EXCHANGE_RATES: string; DATA_SOURCE_IMPORT: string; DATA_SOURCES: string[]; - ENABLE_FEATURE_BLOG: boolean; ENABLE_FEATURE_FEAR_AND_GREED_INDEX: boolean; ENABLE_FEATURE_READ_ONLY_MODE: boolean; ENABLE_FEATURE_SOCIAL_LOGIN: boolean; diff --git a/apps/client/src/app/app.component.html b/apps/client/src/app/app.component.html index 8d4b65ccc..713eb1a94 100644 --- a/apps/client/src/app/app.component.html +++ b/apps/client/src/app/app.component.html @@ -64,7 +64,7 @@
Ghostfolio