mirror of
https://github.com/goharbor/harbor.git
synced 2025-01-04 15:08:21 +01:00
Remove the Replication tab under project view
Signed-off-by: FangyuanCheng <fangyuanc@vmware.com>
This commit is contained in:
parent
ea6ca2b8cc
commit
b11c95316f
@ -36,7 +36,6 @@ import { TotalReplicationPageComponent } from './replication/total-replication/t
|
|||||||
import { ReplicationTasksPageComponent } from './replication/replication-tasks-page/replication-tasks-page.component';
|
import { ReplicationTasksPageComponent } from './replication/replication-tasks-page/replication-tasks-page.component';
|
||||||
|
|
||||||
import { DestinationPageComponent } from './replication/destination/destination-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 { AuditLogComponent } from './log/audit-log.component';
|
||||||
import { LogPageComponent } from './log/log-page.component';
|
import { LogPageComponent } from './log/log-page.component';
|
||||||
@ -177,10 +176,6 @@ const harborRoutes: Routes = [
|
|||||||
path: 'repositories/:repo/tags',
|
path: 'repositories/:repo/tags',
|
||||||
component: TagRepositoryComponent,
|
component: TagRepositoryComponent,
|
||||||
},
|
},
|
||||||
{
|
|
||||||
path: 'replications',
|
|
||||||
component: ReplicationPageComponent,
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
path: 'members',
|
path: 'members',
|
||||||
component: MemberComponent
|
component: MemberComponent
|
||||||
|
@ -13,9 +13,6 @@
|
|||||||
<li class="nav-item" *ngIf="hasMemberListPermission">
|
<li class="nav-item" *ngIf="hasMemberListPermission">
|
||||||
<a class="nav-link" routerLink="members" routerLinkActive="active">{{'PROJECT_DETAIL.USERS' | translate}}</a>
|
<a class="nav-link" routerLink="members" routerLinkActive="active">{{'PROJECT_DETAIL.USERS' | translate}}</a>
|
||||||
</li>
|
</li>
|
||||||
<li class="nav-item" *ngIf="hasReplicationListPermission">
|
|
||||||
<a class="nav-link" routerLink="replications" routerLinkActive="active">{{'PROJECT_DETAIL.REPLICATION' | translate}}</a>
|
|
||||||
</li>
|
|
||||||
<li class="nav-item" *ngIf="(hasLabelListPermission && hasLabelCreatePermission) && !withAdmiral">
|
<li class="nav-item" *ngIf="(hasLabelListPermission && hasLabelCreatePermission) && !withAdmiral">
|
||||||
<a class="nav-link" routerLink="labels" routerLinkActive="active">{{'PROJECT_DETAIL.LABELS' | translate}}</a>
|
<a class="nav-link" routerLink="labels" routerLinkActive="active">{{'PROJECT_DETAIL.LABELS' | translate}}</a>
|
||||||
</li>
|
</li>
|
||||||
|
@ -38,7 +38,6 @@ export class ProjectDetailComponent implements OnInit {
|
|||||||
hasHelmChartsListPermission: boolean;
|
hasHelmChartsListPermission: boolean;
|
||||||
hasRepositoryListPermission: boolean;
|
hasRepositoryListPermission: boolean;
|
||||||
hasMemberListPermission: boolean;
|
hasMemberListPermission: boolean;
|
||||||
hasReplicationListPermission: boolean;
|
|
||||||
hasLabelListPermission: boolean;
|
hasLabelListPermission: boolean;
|
||||||
hasLabelCreatePermission: boolean;
|
hasLabelCreatePermission: boolean;
|
||||||
hasLogListPermission: boolean;
|
hasLogListPermission: boolean;
|
||||||
@ -72,8 +71,6 @@ export class ProjectDetailComponent implements OnInit {
|
|||||||
USERSTATICPERMISSION.CONFIGURATION.KEY, USERSTATICPERMISSION.CONFIGURATION.VALUE.READ));
|
USERSTATICPERMISSION.CONFIGURATION.KEY, USERSTATICPERMISSION.CONFIGURATION.VALUE.READ));
|
||||||
permissionsList.push(this.userPermissionService.getPermission(projectId,
|
permissionsList.push(this.userPermissionService.getPermission(projectId,
|
||||||
USERSTATICPERMISSION.MEMBER.KEY, USERSTATICPERMISSION.MEMBER.VALUE.LIST));
|
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,
|
permissionsList.push(this.userPermissionService.getPermission(projectId,
|
||||||
USERSTATICPERMISSION.LABEL.KEY, USERSTATICPERMISSION.LABEL.VALUE.LIST));
|
USERSTATICPERMISSION.LABEL.KEY, USERSTATICPERMISSION.LABEL.VALUE.LIST));
|
||||||
permissionsList.push(this.userPermissionService.getPermission(projectId,
|
permissionsList.push(this.userPermissionService.getPermission(projectId,
|
||||||
@ -85,7 +82,7 @@ export class ProjectDetailComponent implements OnInit {
|
|||||||
permissionsList.push(this.userPermissionService.getPermission(projectId,
|
permissionsList.push(this.userPermissionService.getPermission(projectId,
|
||||||
USERSTATICPERMISSION.LABEL.KEY, USERSTATICPERMISSION.LABEL.VALUE.CREATE));
|
USERSTATICPERMISSION.LABEL.KEY, USERSTATICPERMISSION.LABEL.VALUE.CREATE));
|
||||||
forkJoin(...permissionsList).subscribe(Rules => {
|
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.hasLabelListPermission, this.hasRepositoryListPermission, this.hasHelmChartsListPermission, this.hasRobotListPermission
|
||||||
, this.hasLabelCreatePermission] = Rules;
|
, this.hasLabelCreatePermission] = Rules;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user