MOBILE-3708 home: Always display home tab

main
Dani Palou 2021-03-05 12:18:42 +01:00
parent b211919f38
commit 4d001428ec
2 changed files with 4 additions and 19 deletions

View File

@ -13,7 +13,6 @@
</ion-toolbar>
</ion-header>
<ion-content>
<!-- @todo -->
<core-loading [hideUntil]="loaded">
<core-tabs-outlet *ngIf="tabs.length > 0" [selectedIndex]="selectedTab" [hideUntil]="loaded" [tabs]="tabs">
</core-tabs-outlet>

View File

@ -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<boolean> {
return this.isEnabledForSite();
async isEnabled(): Promise<boolean> {
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<boolean> {
return CoreMainMenuHomeDelegate.getHandlers().length > 0;
}
/**
* Returns the data needed to render the handler.
*
* @return Data needed to render the handler.
* @inheritdoc
*/
getDisplayData(): CoreMainMenuHandlerData {
return {