You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@streampipes.apache.org by ze...@apache.org on 2022/05/18 09:41:14 UTC

[incubator-streampipes] branch STREAMPIPES-537 updated: [STREAMPIPES-537] Update router for file module

This is an automated email from the ASF dual-hosted git repository.

zehnder pushed a commit to branch STREAMPIPES-537
in repository https://gitbox.apache.org/repos/asf/incubator-streampipes.git


The following commit(s) were added to refs/heads/STREAMPIPES-537 by this push:
     new 9b3ec883d [STREAMPIPES-537] Update router for file module
9b3ec883d is described below

commit 9b3ec883d641487e17fb1b79cca01d8f4a009eb1
Author: Philipp Zehnder <ze...@fzi.de>
AuthorDate: Wed May 18 11:41:01 2022 +0200

    [STREAMPIPES-537] Update router for file module
---
 ui/deployment/app-routing.module.mst |  1 +
 ui/src/app/files/files.module.ts     | 13 ++++++++++++-
 2 files changed, 13 insertions(+), 1 deletion(-)

diff --git a/ui/deployment/app-routing.module.mst b/ui/deployment/app-routing.module.mst
index 2ef9f3f92..0ef600966 100644
--- a/ui/deployment/app-routing.module.mst
+++ b/ui/deployment/app-routing.module.mst
@@ -65,6 +65,7 @@ const routes: Routes = [
       {{/ng5}}
       {{/modulesActive}}
 
+      { path: '', data: { authPageNames: [PageName.SETTINGS]}, loadChildren: () => import('./files/files.module').then(m => m.FilesModule)},
       { path: '', data: { authPageNames: [PageName.SETTINGS]}, loadChildren: () => import('./configuration/configuration.module').then(m => m.ConfigurationModule)},
       
       { path: 'notifications', component: NotificationsComponent },
diff --git a/ui/src/app/files/files.module.ts b/ui/src/app/files/files.module.ts
index 7bccd09f7..65847dfb4 100644
--- a/ui/src/app/files/files.module.ts
+++ b/ui/src/app/files/files.module.ts
@@ -39,6 +39,7 @@ import { MatPaginatorModule } from '@angular/material/paginator';
 import { MatChipsModule } from '@angular/material/chips';
 import { MatTooltipModule } from '@angular/material/tooltip';
 import { PlatformServicesModule } from '@streampipes/platform-services';
+import { RouterModule } from "@angular/router";
 
 @NgModule({
     imports: [
@@ -61,7 +62,17 @@ import { PlatformServicesModule } from '@streampipes/platform-services';
         MatTabsModule,
         MatTooltipModule,
         PlatformServicesModule,
-        ServicesModule
+        ServicesModule,
+        RouterModule.forChild([
+        {
+            path: 'files',
+            children: [
+            {
+                path: '',
+                component: FilesComponent
+            }]
+        }])
+
     ],
     declarations: [
         FilesComponent,