Skip to content

Commit

Permalink
Merge branch 'dspace-cris-2023_02_x' into fix_tab_issue
Browse files Browse the repository at this point in the history
* dspace-cris-2023_02_x:
  [DSC-880] port fix to hide tab
  CST-7885 hide relationship tab in administer item
  • Loading branch information
oye816 committed May 7, 2024
2 parents a3f8773 + a77762a commit 9036181
Showing 1 changed file with 16 additions and 14 deletions.
30 changes: 16 additions & 14 deletions src/app/item-page/edit-item-page/edit-item-page.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,22 @@
<h2 class="border-bottom">{{'item.edit.head' | translate}}</h2>
<div class="pt-2">
<ul class="nav nav-tabs justify-content-start" role="tablist">
<li *ngFor="let page of pages" class="nav-item" [attr.aria-selected]="page.page === currentPage" role="tab">
<a *ngIf="(page.enabled | async)"
class="nav-link"
[ngClass]="{'active' : page.page === currentPage}"
[routerLink]="['./' + page.page]">
{{'item.edit.tabs.' + page.page + '.head' | translate}}
</a>
<span [ngbTooltip]="'item.edit.tabs.disabled.tooltip' | translate">
<button *ngIf="!(page.enabled | async)"
class="nav-link disabled">
{{'item.edit.tabs.' + page.page + '.head' | translate}}
</button>
</span>
</li>
<ng-container *ngFor="let page of pages">
<li *ngIf="page.page != 'relationships'" [attr.aria-selected]="page.page === currentPage" role="tab" class="nav-item">
<a *ngIf="(page.enabled | async)"
class="nav-link"
[ngClass]="{'active' : page.page === currentPage}"
[routerLink]="['./' + page.page]">
{{'item.edit.tabs.' + page.page + '.head' | translate}}
</a>
<span [ngbTooltip]="'item.edit.tabs.disabled.tooltip' | translate">
<button *ngIf="!(page.enabled | async)"
class="nav-link disabled">
{{'item.edit.tabs.' + page.page + '.head' | translate}}
</button>
</span>
</li>
</ng-container>
</ul>
<div class="tab-pane active">
<div class="mb-4">
Expand Down

0 comments on commit 9036181

Please sign in to comment.