From 4d001428ecd1f8654ca4362c78634a76a3dcfcc0 Mon Sep 17 00:00:00 2001 From: Dani Palou Date: Fri, 5 Mar 2021 12:18:42 +0100 Subject: [PATCH] MOBILE-3708 home: Always display home tab --- .../features/mainmenu/pages/home/home.html | 1 - .../mainmenu/services/handlers/mainmenu.ts | 22 ++++--------------- 2 files changed, 4 insertions(+), 19 deletions(-) diff --git a/src/core/features/mainmenu/pages/home/home.html b/src/core/features/mainmenu/pages/home/home.html index fee27cc92..098d9a6af 100644 --- a/src/core/features/mainmenu/pages/home/home.html +++ b/src/core/features/mainmenu/pages/home/home.html @@ -13,7 +13,6 @@ - diff --git a/src/core/features/mainmenu/services/handlers/mainmenu.ts b/src/core/features/mainmenu/services/handlers/mainmenu.ts index c11b6e9b4..d30e00e8c 100644 --- a/src/core/features/mainmenu/services/handlers/mainmenu.ts +++ b/src/core/features/mainmenu/services/handlers/mainmenu.ts @@ -14,7 +14,6 @@ import { Injectable } from '@angular/core'; import { makeSingleton } from '@singletons'; -import { CoreMainMenuHomeDelegate } from '../home-delegate'; import { CoreMainMenuHandler, CoreMainMenuHandlerData } from '../mainmenu-delegate'; /** @@ -29,27 +28,14 @@ export class CoreMainMenuHomeHandlerService implements CoreMainMenuHandler { priority = 1100; /** - * Check if the handler is enabled on a site level. - * - * @return Whether or not the handler is enabled on a site level. + * @inheritdoc */ - isEnabled(): Promise { - return this.isEnabledForSite(); + async isEnabled(): Promise { + return true; } /** - * Check if the handler is enabled on a certain site. - * - * @return Whether or not the handler is enabled on a site level. - */ - async isEnabledForSite(): Promise { - return CoreMainMenuHomeDelegate.getHandlers().length > 0; - } - - /** - * Returns the data needed to render the handler. - * - * @return Data needed to render the handler. + * @inheritdoc */ getDisplayData(): CoreMainMenuHandlerData { return {