Skip to content

Commit 711c2f8

Browse files
yp05327delvh
andauthored
Update web_src/js/features/repo-issue-pr-status.js
Co-authored-by: delvh <dev.lh@web.de>
1 parent a2cf202 commit 711c2f8

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

web_src/js/features/repo-issue-pr-status.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,10 @@ export function initRepoPullRequestCommitStatus() {
88
const $this = $(e.currentTarget);
99

1010
if ($prStatus.hasClass('hide')) {
11-
$prStatus.removeClass('hide');
1211
$this.text($this.attr('data-hide-all'));
1312
} else {
14-
$prStatus.addClass('hide');
1513
$this.text($this.attr('data-show-all'));
1614
}
15+
$prStatus.toggleClass('hide');
1716
});
1817
}

0 commit comments

Comments
 (0)