Skip to content

Commit

Permalink
Sonar: Add a 'onKeyPress|onKeyDown|onKeyUp' attribute to this <span> tag
Browse files Browse the repository at this point in the history
  • Loading branch information
qmonmert committed May 10, 2024
1 parent 1d2b58a commit 25af13e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,35 +24,35 @@

<div class="modal-body">
<div class="mb-3">
<span class="badge bg-primary hand" (click)="threadStateFilter = undefined">
<span class="badge bg-primary hand" (click)="threadStateFilter = undefined" (keydown)="threadStateFilter = undefined">
@if (threadStateFilter === undefined) {
<fa-icon icon="check"></fa-icon>
}
All&nbsp;<span class="badge rounded-pill bg-default">{{ threadDumpAll }}</span>
</span>

<span class="badge bg-success hand" (click)="threadStateFilter = ThreadState.Runnable">
<span class="badge bg-success hand" (click)="threadStateFilter = ThreadState.Runnable" (keydown)="threadStateFilter = ThreadState.Runnable">
@if (threadStateFilter === ThreadState.Runnable) {
<fa-icon icon="check"></fa-icon>
}
Runnable&nbsp;<span class="badge rounded-pill bg-default">{{ threadDumpRunnable }}</span>
</span>

<span class="badge bg-info hand" (click)="threadStateFilter = ThreadState.Waiting">
<span class="badge bg-info hand" (click)="threadStateFilter = ThreadState.Waiting" (keydown)="threadStateFilter = ThreadState.Waiting">
@if (threadStateFilter === ThreadState.Waiting) {
<fa-icon icon="check"></fa-icon>
}
Waiting&nbsp;<span class="badge rounded-pill bg-default">{{ threadDumpWaiting }}</span>
</span>

<span class="badge bg-warning hand" (click)="threadStateFilter = ThreadState.TimedWaiting">
<span class="badge bg-warning hand" (click)="threadStateFilter = ThreadState.TimedWaiting" (keydown)="threadStateFilter = ThreadState.TimedWaiting">
@if (threadStateFilter === ThreadState.TimedWaiting) {
<fa-icon icon="check"></fa-icon>
}
Timed Waiting&nbsp;<span class="badge rounded-pill bg-default">{{ threadDumpTimedWaiting }}</span>
</span>

<span class="badge bg-danger hand" (click)="threadStateFilter = ThreadState.Blocked">
<span class="badge bg-danger hand" (click)="threadStateFilter = ThreadState.Blocked" (keydown)="threadStateFilter = ThreadState.Blocked">
@if (threadStateFilter === ThreadState.Blocked) {
<fa-icon icon="check"></fa-icon>
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
@if (filters.hasAnyFilterSet()) {
<div class="filter-display">
<span>__jhiTranslateTag__('entity.filters.set')</span>
<fa-icon icon="times" (click)="clearAllFilters()" title="__jhiTranslatePipe__('entity.filters.clearAll')"></fa-icon>
<fa-icon icon="times" (click)="clearAllFilters()" (keydown)="clearAllFilters()" title="__jhiTranslatePipe__('entity.filters.clearAll')"></fa-icon>
<ul>
@for (filterOption of filters.filterOptions; track filterOption.name) {
@for (value of filterOption.values; track value) {
<li>
<span>{{ filterOption.name }}:</span> {{ value }}
<fa-icon icon="times" (click)="clearFilter(filterOption.name, value)" title="__jhiTranslatePipe__('entity.filters.clear')"></fa-icon>
<fa-icon icon="times" (click)="clearFilter(filterOption.name, value)" (keydown)="clearFilter(filterOption.name, value)" title="__jhiTranslatePipe__('entity.filters.clear')"></fa-icon>
</li>
}
}
Expand Down

0 comments on commit 25af13e

Please sign in to comment.