Skip to content

Commit ad2ea73

Browse files
committed
Dynamically adjust the appearance of the filter field
1 parent 9217b48 commit ad2ea73

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

website/src/queries-logic.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,17 @@ function update_table_data(responseData, user, repo, parentDefaultBranch) {
254254
}
255255
}
256256

257+
function update_filter_appearance() {
258+
const filter = getFilterOrDefault();
259+
if (filter === '') {
260+
JQ_FILTER_FIELD.removeClass('is-dark');
261+
} else {
262+
JQ_FILTER_FIELD.addClass('is-dark');
263+
}
264+
}
265+
257266
function update_filter() {
267+
update_filter_appearance();
258268
updateFilterFunction();
259269
update_table_trying_use_filter();
260270

0 commit comments

Comments
 (0)