From b11c95316f8d291d4a5f89ccaeb04dc0665aca43 Mon Sep 17 00:00:00 2001 From: FangyuanCheng Date: Tue, 16 Apr 2019 17:49:06 +0800 Subject: [PATCH] Remove the Replication tab under project view Signed-off-by: FangyuanCheng --- src/portal/src/app/harbor-routing.module.ts | 5 ----- .../app/project/project-detail/project-detail.component.html | 3 --- .../app/project/project-detail/project-detail.component.ts | 5 +---- 3 files changed, 1 insertion(+), 12 deletions(-) diff --git a/src/portal/src/app/harbor-routing.module.ts b/src/portal/src/app/harbor-routing.module.ts index e533d7fe8..7413ca37f 100644 --- a/src/portal/src/app/harbor-routing.module.ts +++ b/src/portal/src/app/harbor-routing.module.ts @@ -36,7 +36,6 @@ import { TotalReplicationPageComponent } from './replication/total-replication/t import { ReplicationTasksPageComponent } from './replication/replication-tasks-page/replication-tasks-page.component'; import { DestinationPageComponent } from './replication/destination/destination-page.component'; -import { ReplicationPageComponent } from './replication/replication-page.component'; import { AuditLogComponent } from './log/audit-log.component'; import { LogPageComponent } from './log/log-page.component'; @@ -177,10 +176,6 @@ const harborRoutes: Routes = [ path: 'repositories/:repo/tags', component: TagRepositoryComponent, }, - { - path: 'replications', - component: ReplicationPageComponent, - }, { path: 'members', component: MemberComponent diff --git a/src/portal/src/app/project/project-detail/project-detail.component.html b/src/portal/src/app/project/project-detail/project-detail.component.html index 5d3ea84c8..89820aa8a 100644 --- a/src/portal/src/app/project/project-detail/project-detail.component.html +++ b/src/portal/src/app/project/project-detail/project-detail.component.html @@ -13,9 +13,6 @@ - diff --git a/src/portal/src/app/project/project-detail/project-detail.component.ts b/src/portal/src/app/project/project-detail/project-detail.component.ts index 98fcccd51..7c969ed36 100644 --- a/src/portal/src/app/project/project-detail/project-detail.component.ts +++ b/src/portal/src/app/project/project-detail/project-detail.component.ts @@ -38,7 +38,6 @@ export class ProjectDetailComponent implements OnInit { hasHelmChartsListPermission: boolean; hasRepositoryListPermission: boolean; hasMemberListPermission: boolean; - hasReplicationListPermission: boolean; hasLabelListPermission: boolean; hasLabelCreatePermission: boolean; hasLogListPermission: boolean; @@ -72,8 +71,6 @@ export class ProjectDetailComponent implements OnInit { USERSTATICPERMISSION.CONFIGURATION.KEY, USERSTATICPERMISSION.CONFIGURATION.VALUE.READ)); permissionsList.push(this.userPermissionService.getPermission(projectId, USERSTATICPERMISSION.MEMBER.KEY, USERSTATICPERMISSION.MEMBER.VALUE.LIST)); - permissionsList.push(this.userPermissionService.getPermission(projectId, - USERSTATICPERMISSION.REPLICATION.KEY, USERSTATICPERMISSION.REPLICATION.VALUE.LIST)); permissionsList.push(this.userPermissionService.getPermission(projectId, USERSTATICPERMISSION.LABEL.KEY, USERSTATICPERMISSION.LABEL.VALUE.LIST)); permissionsList.push(this.userPermissionService.getPermission(projectId, @@ -85,7 +82,7 @@ export class ProjectDetailComponent implements OnInit { permissionsList.push(this.userPermissionService.getPermission(projectId, USERSTATICPERMISSION.LABEL.KEY, USERSTATICPERMISSION.LABEL.VALUE.CREATE)); forkJoin(...permissionsList).subscribe(Rules => { - [this.hasLogListPermission, this.hasConfigurationListPermission, this.hasMemberListPermission, this.hasReplicationListPermission + [this.hasLogListPermission, this.hasConfigurationListPermission, this.hasMemberListPermission, , this.hasLabelListPermission, this.hasRepositoryListPermission, this.hasHelmChartsListPermission, this.hasRobotListPermission , this.hasLabelCreatePermission] = Rules;