1
0

Issue#2535: Hide add more button in submission if no disabled sections

(cherry picked from commit 709848ee25)
This commit is contained in:
Marie Verdonck
2023-10-04 17:27:04 +02:00
committed by github-actions[bot]
parent 312b0aacf6
commit 0d376a6607

View File

@@ -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"