From 9c6c71ed7203efc5feb6a8d6f0c7e57ba2de5a8b Mon Sep 17 00:00:00 2001 From: pengpengshui Date: Wed, 26 Jul 2017 04:16:21 +0800 Subject: [PATCH] modify code about replication rule link issue --- .../total-replication/total-replication-page.component.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/ui_ng/src/app/replication/total-replication/total-replication-page.component.ts b/src/ui_ng/src/app/replication/total-replication/total-replication-page.component.ts index fc4417eff..873330bc2 100644 --- a/src/ui_ng/src/app/replication/total-replication/total-replication-page.component.ts +++ b/src/ui_ng/src/app/replication/total-replication/total-replication-page.component.ts @@ -12,8 +12,9 @@ // See the License for the specific language governing permissions and // limitations under the License. import { Component } from '@angular/core'; -import {ReplicationRule} from "../../../../lib/src/service/interface"; + import {Router} from "@angular/router"; +import {ReplicationRule} from "harbor-ui"; @Component({ selector: 'total-replication', @@ -25,7 +26,7 @@ export class TotalReplicationPageComponent { constructor(private router: Router){} customRedirect(rule: ReplicationRule): void { if (rule) { - this.router.navigateByUrl(`/harbor/projects/${rule.project_id}/replications`); + this.router.navigate(["harbor", "projects", rule.project_id, "replications"]); } } } \ No newline at end of file