MOBILE-2613 blocks: Change default logger name
parent
c7e799b75b
commit
550c2a943c
|
@ -26,7 +26,7 @@ export class AddonBlockComponent implements OnInit {
|
|||
protected domUtils: CoreDomUtilsProvider;
|
||||
protected logger;
|
||||
|
||||
constructor(injector: Injector, loggerName: string = 'CoreCourseModuleMainResourceComponent') {
|
||||
constructor(injector: Injector, loggerName: string = 'AddonBlockComponent') {
|
||||
this.domUtils = injector.get(CoreDomUtilsProvider);
|
||||
const loggerProvider = injector.get(CoreLoggerProvider);
|
||||
this.logger = loggerProvider.getInstance(loggerName);
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
<ion-content>
|
||||
<core-tabs [selectedIndex]="firstSelectedTab" [hideUntil]="tabsReady">
|
||||
<!-- Site home tab. -->
|
||||
<core-tab [show]="siteHomeEnabled" [title]="'core.sitehome.sitehome' | translate" (ionSelect)="tabChanged('sitehome')">
|
||||
<core-tab [show]="siteHomeEnabled" [title]="'core.sitehome.sitehome' | translate">
|
||||
<ng-template>
|
||||
<ion-content>
|
||||
<ion-refresher [enabled]="!!siteHomeComponent && siteHomeComponent.dataLoaded" (ionRefresh)="siteHomeComponent.doRefresh($event)">
|
||||
|
@ -24,7 +24,7 @@
|
|||
</core-tab>
|
||||
|
||||
<!-- Courses tab. -->
|
||||
<core-tab [show]="coursesEnabled" [title]="'core.courses.courses' | translate" (ionSelect)="tabChanged('courses')">
|
||||
<core-tab [show]="coursesEnabled" [title]="'core.courses.courses' | translate">
|
||||
<ng-template>
|
||||
<ion-content>
|
||||
<ion-refresher [enabled]="!!blockMyOverview && blockMyOverview.loaded" (ionRefresh)="blockMyOverview.doRefresh($event)">
|
||||
|
@ -36,7 +36,7 @@
|
|||
</core-tab>
|
||||
|
||||
<!-- Timeline tab. -->
|
||||
<core-tab [show]="timelineEnabled" [title]="'core.courses.timeline' | translate" (ionSelect)="tabChanged('timeline')">
|
||||
<core-tab [show]="timelineEnabled" [title]="'core.courses.timeline' | translate">
|
||||
<ng-template>
|
||||
<ion-content>
|
||||
<ion-refresher [enabled]="!!blockTimeline && blockTimeline.loaded" (ionRefresh)="blockTimeline.doRefresh($event)">
|
||||
|
|
|
@ -43,7 +43,6 @@ export class CoreCoursesDashboardPage implements OnDestroy {
|
|||
timelineEnabled = false;
|
||||
coursesEnabled = false;
|
||||
tabsReady = false;
|
||||
tabShown = 'courses';
|
||||
searchEnabled: boolean;
|
||||
tabs = [];
|
||||
siteName: string;
|
||||
|
@ -111,15 +110,6 @@ export class CoreCoursesDashboardPage implements OnDestroy {
|
|||
this.tabsComponent && this.tabsComponent.ionViewDidLeave();
|
||||
}
|
||||
|
||||
/**
|
||||
* The tab has changed.
|
||||
*
|
||||
* @param {string} tab Name of the new tab.
|
||||
*/
|
||||
tabChanged(tab: string): void {
|
||||
this.tabShown = tab;
|
||||
}
|
||||
|
||||
/**
|
||||
* Go to search courses.
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue