0
0
mirror of https://github.com/go-gitea/gitea.git synced 2026-04-04 03:35:05 +02:00
This commit is contained in:
wxiaoguang 2026-03-30 23:04:18 +08:00
parent 87cfc380fb
commit c5768971ea
3 changed files with 4 additions and 6 deletions

View File

@ -15,9 +15,6 @@
{{end}}
</div>
</div>
<div class="ui list tw-hidden">
<span class="item empty-list">No column</span>
</div>
</div>
{{else if $selectedColumn}}
<div class="tw-mt-1">

View File

@ -9,7 +9,7 @@ export class IssueSidebarComboList {
updateAlgo: string;
selectionMode: string;
elDropdown: HTMLElement;
elList: HTMLElement;
elList: HTMLElement | null;
elComboValue: HTMLInputElement;
initialValues: string[];
container: HTMLElement;
@ -37,6 +37,7 @@ export class IssueSidebarComboList {
}
updateUiList(changedValues: Array<string>) {
if (!this.elList) return;
const elEmptyTip = this.elList.querySelector('.item.empty-list')!;
queryElemChildren(this.elList, '.item:not(.empty-list)', (el) => el.remove());
for (const value of changedValues) {

View File

@ -566,6 +566,8 @@ function initIssueTemplateCommentEditors(commentForm: HTMLFormElement) {
}
export function initRepoCommentFormAndSidebar() {
initRepoIssueSidebar();
const commentForm = document.querySelector<HTMLFormElement>('.comment.form');
if (!commentForm) return;
@ -576,6 +578,4 @@ export function initRepoCommentFormAndSidebar() {
// it's quite unclear about the "comment form" elements, sometimes it's for issue comment, sometimes it's for file editor/uploader message
initSingleCommentEditor(commentForm);
}
initRepoIssueSidebar();
}