mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-27 04:35:16 +01:00
modify code about replication rule link issue
This commit is contained in:
parent
ac2fc863cc
commit
9c6c71ed72
@ -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"]);
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user