Skip to content

Commit

Permalink
Merge pull request DSpace#2536 from atmire/issue-2535_hide-add-more-b…
Browse files Browse the repository at this point in the history
…utton-submission-if-no-disabled-sections-7.x

Issue 2535 hide add more button submission if no disabled sections 7.x
  • Loading branch information
alanorth authored Oct 12, 2023
2 parents 59be2ae + 77dd72b commit 3cb23c1
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 3cb23c1

Please sign in to comment.