1. Change routing to be compatible with Admin Portal of OpenAire.

This commit is contained in:
kostis30fyllou 2019-05-30 16:56:57 +03:00
parent b4f802fb9b
commit dc977a3473
4 changed files with 4 additions and 5 deletions

View File

@ -2,7 +2,8 @@ import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
export const AppRoutes: Routes = [
{ path: '', redirectTo: '/mining/manage-profiles?communityId=Egi', pathMatch: 'full' }
{ path: '', redirectTo: '/mining/manage-profiles?communityId=Egi', pathMatch: 'full' },
{ path: 'mining', loadChildren: './interactivemining/interactive-mining.module#InteractiveMiningModule'}
];
@NgModule({

View File

@ -4,7 +4,6 @@ import {AppComponent} from './app.component';
import {AppRoutingModule} from './app-routing.module';
import {Router} from '@angular/router';
import {BrowserModule} from '@angular/platform-browser';
import {InteractiveMiningModule} from './interactivemining/interactive-mining.module';
@NgModule({
declarations: [
@ -12,7 +11,6 @@ import {InteractiveMiningModule} from './interactivemining/interactive-mining.mo
],
imports: [
BrowserModule,
InteractiveMiningModule,
AppRoutingModule
],
bootstrap: [AppComponent]

View File

@ -8,9 +8,9 @@ import {InteractiveMiningComponent} from './interactive-mining.component';
import {SaveProfileGuard, UploadContentGuard} from './save-profile-guard';
const interactiveMiningRoutes: Routes = [
{path: 'mining', redirectTo: '/mining/manage-profiles', pathMatch: 'full'},
{path: '', redirectTo: '/mining/manage-profiles', pathMatch: 'full'},
{
path: 'mining',
path: '',
// component: InteractiveMiningComponent,
children: [
{ path: 'manage-profiles', component: ManageprofilesComponent },