From 276202cfa9540fea6d5ee4e2924c1022cfcd5af5 Mon Sep 17 00:00:00 2001 From: Qian Deng Date: Fri, 18 Jan 2019 13:34:32 +0800 Subject: [PATCH] Fix issue data not reload when global serach going to a location that has the same url Just add a reload option on router module. This feature is introduced in angular5, we can solve this issue easily. Signed-off-by: Qian Deng --- src/portal/package-lock.json | 2 +- src/portal/src/app/harbor-routing.module.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/portal/package-lock.json b/src/portal/package-lock.json index 494219bce..39788b6ae 100644 --- a/src/portal/package-lock.json +++ b/src/portal/package-lock.json @@ -1,6 +1,6 @@ { "name": "harbor", - "version": "1.7.0", + "version": "1.7.1", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/src/portal/src/app/harbor-routing.module.ts b/src/portal/src/app/harbor-routing.module.ts index a6f01fbe2..5eab2b3c1 100644 --- a/src/portal/src/app/harbor-routing.module.ts +++ b/src/portal/src/app/harbor-routing.module.ts @@ -199,7 +199,7 @@ const harborRoutes: Routes = [ @NgModule({ imports: [ - RouterModule.forRoot(harborRoutes) + RouterModule.forRoot(harborRoutes, {onSameUrlNavigation: 'reload'}) ], exports: [RouterModule] })