Skip to content

Commit 6f42685

Browse files
committed
Fix download buttons on branches page
1 parent 1ad48f7 commit 6f42685

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

web_src/css/modules/animations.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
opacity: 0.3;
1414
}
1515

16+
.btn.is-loading > *,
1617
.button.is-loading > * {
1718
opacity: 0;
1819
}

web_src/js/features/repo-common.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ import {hideElem, showElem} from '../utils/dom.js';
33
import {POST} from '../modules/fetch.js';
44

55
async function getArchive($target, url, first) {
6-
const dropdownBtn = $target[0].closest('.ui.dropdown.button');
6+
console.log($target);
7+
const dropdownBtn = $target[0].closest('.ui.dropdown.button') ?? $target[0].closest('.ui.dropdown.btn');
78

89
try {
910
dropdownBtn.classList.add('is-loading');

0 commit comments

Comments
 (0)