Skip to content

Commit

Permalink
Merge pull request DSpace#2544 from DSpace/backport-2536-to-main
Browse files Browse the repository at this point in the history
[Port main] Issue 2535 hide add more button submission if no disabled sections 7.x
  • Loading branch information
alanorth authored Oct 12, 2023
2 parents 312b0aa + 0d376a6 commit 287ec5a
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,14 @@
placement="bottom-right"
class="d-inline-block"
[ngClass]="{'w-100': windowService.isXs()}">
<ng-container *ngIf="hasSections$ | async">
<button class="btn btn-outline-primary dropdown-toggle"
id="sectionControls"
[disabled]="!(hasSections$ | async)"
[ngClass]="{'w-100': (windowService.isXs() | async)}"
ngbDropdownToggle>
{{ 'submission.sections.general.add-more' | translate }} <i class="fa fa-plus" aria-hidden="true"></i>
</button>
</ng-container>
<div ngbDropdownMenu
class="sections-dropdown-menu"
aria-labelledby="sectionControls"
Expand Down

0 comments on commit 287ec5a

Please sign in to comment.