modify code about replication rule link issue

This commit is contained in:
pengpengshui 2017-07-26 04:16:21 +08:00
parent ac2fc863cc
commit 9c6c71ed72

View File

@ -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"]);
}
}
}