ESLint: fix no-negated-async violations

This commit is contained in:
Yury Bondarenko
2023-06-27 14:06:36 +02:00
parent fa2c22d240
commit 741c6009f4
78 changed files with 175 additions and 159 deletions

View File

@@ -5,7 +5,7 @@
[ngClass]="{'w-100': windowService.isXs()}">
<button class="btn btn-outline-primary dropdown-toggle"
id="sectionControls"
[disabled]="!(hasSections$ | async)"
[disabled]="(hasSections$ | async) === false"
[ngClass]="{'w-100': (windowService.isXs() | async)}"
ngbDropdownToggle>
{{ 'submission.sections.general.add-more' | translate }} <i class="fa fa-plus" aria-hidden="true"></i>
@@ -14,7 +14,7 @@
class="sections-dropdown-menu"
aria-labelledby="sectionControls"
[ngClass]="{'w-100': (windowService.isXs() | async)}">
<button class="dropdown-item disabled" *ngIf="!(hasSections$ | async)">
<button class="dropdown-item disabled" *ngIf="(hasSections$ | async) === false">
{{ 'submission.sections.general.no-sections' | translate }}
</button>
<button class="dropdown-item" *ngFor="let listItem of (sectionList$ | async)" (click)="addSection(listItem.id)">