Skip to content

Commit 569fb07

Browse files
committed
hide manage topic button when editing the topics
1 parent 23ec305 commit 569fb07

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

web_src/js/features/repo-home.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,15 @@ export function initRepoTopicBar() {
1616
let lastErrorToast: Toast;
1717

1818
mgrBtn.addEventListener('click', () => {
19-
hideElem(viewDiv);
19+
hideElem([viewDiv, mgrBtn]);
2020
showElem(editDiv);
2121
topicDropdown.querySelector<HTMLInputElement>('input.search').focus();
2222
});
2323

2424
document.querySelector('#cancel_topic_edit').addEventListener('click', () => {
2525
lastErrorToast?.hideToast();
2626
hideElem(editDiv);
27-
showElem(viewDiv);
27+
showElem([viewDiv, mgrBtn]);
2828
mgrBtn.focus();
2929
});
3030

@@ -55,7 +55,7 @@ export function initRepoTopicBar() {
5555
}
5656
}
5757
hideElem(editDiv);
58-
showElem(viewDiv);
58+
showElem([viewDiv, mgrBtn]);
5959
}
6060
} else if (response.status === 422) {
6161
// how to test: input topic like " invalid topic " (with spaces), and select it from the list, then "Save"

0 commit comments

Comments
 (0)