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 {