Skip to content

Commit

Permalink
Merge pull request #15560 from opf/chore/fix-eslint-eqeqeq-complaint
Browse files Browse the repository at this point in the history
Fix eslint complaint about 'eqeqeq' rule
  • Loading branch information
HDinger committed May 15, 2024
2 parents 2fda759 + 6c7884f commit 711236a
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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>

Expand All @@ -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>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
</select>

<op-filter-boolean-value
*ngIf="valueType == '[1]Boolean'"
*ngIf="valueType === '[1]Boolean'"
(filterChanged)="onFilterUpdated($event)"
[shouldFocus]="shouldFocus"
[filter]="filter"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -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"
Expand All @@ -108,7 +108,7 @@
></button>
</span>

<span *ngIf="perPageOption == pagination.perPage">{{ perPageOption }}</span>
<span *ngIf="perPageOption === pagination.perPage">{{ perPageOption }}</span>
</li>
</ul>
</div>
Expand Down

0 comments on commit 711236a

Please sign in to comment.