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'; import { RouterModule, Routes } from '@angular/router';
export const AppRoutes: Routes = [ 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({ @NgModule({

View File

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

View File

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