Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Fix eslint complaint about 'eqeqeq' rule

Aaron Contreras6c7884fb2407
diff --git a/frontend/src/app/features/boards/board/add-list-modal/add-list-modal.html b/frontend/src/app/features/boards/board/add-list-modal/add-list-modal.html
index 951c507063a..b2bc7f75f55 100644
--- a/frontend/src/app/features/boards/board/add-list-modal/add-list-modal.html
+++ b/frontend/src/app/features/boards/board/add-list-modal/add-list-modal.html
@@ -2,7 +2,7 @@
class="spot-modal spot-modal_autoheight confirm-form-submit--modal loading-indicator--location"
data-indicator-name="modal"
>
- <div id="spotModalTitle" class="spot-modal--header">{{text.title}}</div>
+ <div id="spotModalTitle" class="spot-modal--header">{{ text.title }}</div>
<div class="spot-divider"></div>
@@ -28,14 +28,14 @@
[getOptionsFn]=autocompleterOptions.getOptionsFn
(change)="onModelChange($event)"
>
- <ng-template op-autocompleter-footer-tmp *ngIf="autocompleterOptions.resource=='version'" let-search>
+ <ng-template op-autocompleter-footer-tmp *ngIf="autocompleterOptions.resource==='version'" let-search>
<button
class="op-select-footer--label"
type="button"
(click)="onNewActionCreated()">
<span class="icon-context">
<op-icon icon-classes="icon-plus icon-context"></op-icon>
- {{text.button_create}} {{ngSelectComponent.ngSelectInstance.searchTerm}}
+ {{ text.button_create }} {{ ngSelectComponent.ngSelectInstance.searchTerm }}
</span>
</button>
diff --git a/frontend/src/app/features/work-packages/components/filters/query-filter/query-filter.component.html b/frontend/src/app/features/work-packages/components/filters/query-filter/query-filter.component.html
index b5b4ff78f2c..3c750853b7f 100644
--- a/frontend/src/app/features/work-packages/components/filters/query-filter/query-filter.component.html
+++ b/frontend/src/app/features/work-packages/components/filters/query-filter/query-filter.component.html
@@ -44,7 +44,7 @@
</select>
<op-filter-boolean-value
- *ngIf="valueType == '[1]Boolean'"
+ *ngIf="valueType === '[1]Boolean'"
(filterChanged)="onFilterUpdated($event)"
[shouldFocus]="shouldFocus"
[filter]="filter"
diff --git a/frontend/src/app/features/work-packages/components/filters/query-filters/query-filters.component.html b/frontend/src/app/features/work-packages/components/filters/query-filters/query-filters.component.html
index 27eecbf8aaf..ce62fa399b6 100644
--- a/frontend/src/app/features/work-packages/components/filters/query-filters/query-filters.component.html
+++ b/frontend/src/app/features/work-packages/components/filters/query-filters/query-filters.component.html
@@ -29,7 +29,7 @@
<li *ngIf="isFilterAvailable(filter)"
id="filter_{{filter.id}}"
query-filter
- [shouldFocus]="index == focusElementIndex"
+ [shouldFocus]="index === focusElementIndex"
[filter]="filter"
(deactivateFilter)="deactivateFilter($event)"
(filterChanged)="filtersChanged.emit(filters)"
diff --git a/frontend/src/app/shared/components/table-pagination/table-pagination.component.html b/frontend/src/app/shared/components/table-pagination/table-pagination.component.html
index 487f6590b3f..b5fc04549b3 100644
--- a/frontend/src/app/shared/components/table-pagination/table-pagination.component.html
+++ b/frontend/src/app/shared/components/table-pagination/table-pagination.component.html
@@ -2,7 +2,7 @@
<nav class="op-pagination--pages">
<ul class="op-pagination--items op-pagination--items_start">
- <li [hidden]="pagination.page == 1 || !showPageSelections" class="op-pagination--item">
+ <li [hidden]="pagination.page === 1 || !showPageSelections" class="op-pagination--item">
<button
class="op-pagination--item-link op-pagination--item-link_prev"
type="button"
@@ -30,13 +30,13 @@
<ng-container *ngIf="pageNumbers.length > 1">
<li *ngFor="let pageNumber of pageNumbers"
- [ngClass]="{ 'op-pagination--item_current': pageNumber == pagination.page }"
+ [ngClass]="{ 'op-pagination--item_current': pageNumber === pagination.page }"
class="op-pagination--item">
- <em *ngIf="pageNumber == pagination.page">{{ pageNumber }}</em>
+ <em *ngIf="pageNumber === pagination.page">{{ pageNumber }}</em>
<button
class="op-pagination--item-link"
type="button"
- *ngIf="pageNumber != pagination.page"
+ *ngIf="pageNumber !== pagination.page"
(click)="showPage(pageNumber)"
rel="next"
[textContent]="pageNumber"
@@ -96,10 +96,10 @@
<li class="op-pagination--label" [textContent]="text.per_page" title="{{ text.per_page }}"></li>
<li *ngFor="let perPageOption of perPageOptions"
- [ngClass]="{ 'op-pagination--item_current': perPageOption == pagination.perPage }"
+ [ngClass]="{ 'op-pagination--item_current': perPageOption === pagination.perPage }"
class="op-pagination--item">
- <span *ngIf="perPageOption != pagination.perPage">
+ <span *ngIf="perPageOption !== pagination.perPage">
<button
class="op-pagination--item-link"
type="button"
@@ -108,7 +108,7 @@
></button>
</span>
- <span *ngIf="perPageOption == pagination.perPage">{{ perPageOption }}</span>
+ <span *ngIf="perPageOption === pagination.perPage">{{ perPageOption }}</span>
</li>
</ul>
</div>