Merge pull request #2885 from dpalou/MOBILE-3320
MOBILE-3320 siteplugins: Fix routes of some type of pluginsmain
commit
7f2b3a927a
|
@ -41,7 +41,7 @@
|
|||
</ion-label>
|
||||
</ion-item>
|
||||
<ion-card-content>
|
||||
<ion-item>
|
||||
<ion-item class="ion-text-wrap">
|
||||
<ion-label>
|
||||
<core-format-text [text]="entry.summary" [component]="this.component" [componentId]="entry.id"
|
||||
[contextLevel]="contextLevel" [contextInstanceId]="contextInstanceId">
|
||||
|
|
|
@ -94,7 +94,7 @@ export class CoreSitePluginsCourseOptionHandler extends CoreSitePluginsBaseHandl
|
|||
title: this.title,
|
||||
class: this.handlerSchema.displaydata?.class,
|
||||
icon: this.handlerSchema.displaydata?.icon || '',
|
||||
page: `siteplugins/${this.plugin.component}/${this.handlerSchema.method}/${hash}`,
|
||||
page: `siteplugins/content/${this.plugin.component}/${this.handlerSchema.method}/${hash}`,
|
||||
pageParams: {
|
||||
title: this.title,
|
||||
args,
|
||||
|
|
|
@ -47,7 +47,7 @@ export class CoreSitePluginsMainMenuHandler extends CoreSitePluginsBaseHandler i
|
|||
title: this.title,
|
||||
icon: this.handlerSchema.displaydata?.icon || 'fas-question',
|
||||
class: this.handlerSchema.displaydata?.class,
|
||||
page: `siteplugins/${this.plugin.component}/${this.handlerSchema.method}/0`,
|
||||
page: `siteplugins/content/${this.plugin.component}/${this.handlerSchema.method}/0`,
|
||||
pageParams: {
|
||||
title: this.title,
|
||||
initResult: this.initResult,
|
||||
|
|
|
@ -44,7 +44,7 @@ export class CoreSitePluginsMessageOutputHandler extends CoreSitePluginsBaseHand
|
|||
priority: this.handlerSchema.priority || 0,
|
||||
label: this.title,
|
||||
icon: this.handlerSchema.displaydata?.icon || 'fas-question',
|
||||
page: `siteplugins/${this.plugin.component}/${this.handlerSchema.method}/0`,
|
||||
page: `siteplugins/content/${this.plugin.component}/${this.handlerSchema.method}/0`,
|
||||
pageParams: {
|
||||
title: this.title,
|
||||
initResult: this.initResult,
|
||||
|
|
|
@ -49,7 +49,7 @@ export class CoreSitePluginsSettingsHandler extends CoreSitePluginsBaseHandler i
|
|||
title: this.title,
|
||||
icon: this.handlerSchema.displaydata?.icon,
|
||||
class: this.handlerSchema.displaydata?.class,
|
||||
page: `siteplugins/${this.plugin.component}/${this.handlerSchema.method}/0`,
|
||||
page: `siteplugins/content/${this.plugin.component}/${this.handlerSchema.method}/0`,
|
||||
params: {
|
||||
title: this.title,
|
||||
initResult: this.initResult,
|
||||
|
|
|
@ -18,6 +18,7 @@ import { Routes } from '@angular/router';
|
|||
import { CoreCourseIndexRoutingModule } from '@features/course/pages/index/index-routing.module';
|
||||
import { CoreMainMenuTabRoutingModule } from '@features/mainmenu/mainmenu-tab-routing.module';
|
||||
import { CoreMainMenuHomeRoutingModule } from '@features/mainmenu/pages/home/home-routing.module';
|
||||
import { CoreSitePreferencesRoutingModule } from '@features/settings/pages/site/site-routing';
|
||||
import { CoreSitePluginsComponentsModule } from './components/components.module';
|
||||
import { CoreSitePluginsHelper } from './services/siteplugins-helper';
|
||||
|
||||
|
@ -55,6 +56,7 @@ const moduleRoutes: Routes = [
|
|||
CoreMainMenuTabRoutingModule.forChild(moduleRoutes.concat(routes)),
|
||||
CoreCourseIndexRoutingModule.forChild({ children: courseIndexRoutes }),
|
||||
CoreMainMenuHomeRoutingModule.forChild({ children: homeRoutes }),
|
||||
CoreSitePreferencesRoutingModule.forChild(routes),
|
||||
CoreSitePluginsComponentsModule,
|
||||
],
|
||||
providers: [
|
||||
|
|
Loading…
Reference in New Issue