117287: Removed remaining observable function calls from the HTML templates

This commit is contained in:
Alexandre Vryghem
2025-01-29 20:53:54 +01:00
parent 5ee721f2c4
commit dc8b10593c
38 changed files with 332 additions and 515 deletions

View File

@@ -2,18 +2,18 @@
#sectionAdd="ngbDropdown"
placement="bottom-right"
class="d-inline-block"
[ngClass]="{'w-100': windowService.isXs()}">
[ngClass]="{'w-100': isXs$}">
<button class="btn btn-outline-primary dropdown-toggle"
id="sectionControls"
[disabled]="!(hasSections$ | async)"
[ngClass]="{'w-100': (windowService.isXs() | async)}"
[ngClass]="{'w-100': (isXs$ | async)}"
ngbDropdownToggle>
{{ 'submission.sections.general.add-more' | translate }} <i class="fa fa-plus" aria-hidden="true"></i>
</button>
<div ngbDropdownMenu
class="sections-dropdown-menu"
aria-labelledby="sectionControls"
[ngClass]="{'w-100': (windowService.isXs() | async)}">
[ngClass]="{'w-100': (isXs$ | async)}">
<button class="dropdown-item disabled" *ngIf="!(hasSections$ | async)">
{{ 'submission.sections.general.no-sections' | translate }}
</button>