Skip to content

Commit

Permalink
Issue#2535: Hide add more button in submission if no disabled sections
Browse files Browse the repository at this point in the history
(cherry picked from commit 709848e)
  • Loading branch information
MarieVerdonck authored and github-actions[bot] committed Oct 12, 2023
1 parent 312b0aa commit 0d376a6
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 0d376a6

Please sign in to comment.