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
  • Loading branch information
MarieVerdonck committed Oct 4, 2023
1 parent ca86437 commit 709848e
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 709848e

Please sign in to comment.