mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-03 06:38:06 +02:00
chore: fix the comment context menu drop down
This commit is contained in:
1 parent
d36fece725
commit
5d9651b8ed
2 files changed
+15
No files matched your search
@@ -19,6 +19,7 @@ import {
|
||||
import {POST, GET} from '../modules/fetch.ts';
|
||||
import {fomanticQuery} from '../modules/fomantic/base.ts';
|
||||
import {createTippy} from '../modules/tippy.ts';
|
||||
import {initGlobalDropdown} from './common-page.ts';
|
||||
|
||||
const {pageData, i18n} = window.config;
|
||||
|
||||
@@ -94,6 +95,13 @@ function initRepoDiffConversationForm() {
|
||||
}
|
||||
});
|
||||
|
||||
$(document).on('click', '.pull-request-diff-comments', async (e) => {
|
||||
e.preventDefault();
|
||||
initGlobalDropdown();
|
||||
// post initiation cleaning up the buttons and scripts
|
||||
$('.pull-request-diff-comments').remove();
|
||||
});
|
||||
|
||||
$(document).on('click', '.resolve-conversation', async function (e) {
|
||||
e.preventDefault();
|
||||
const comment_id = $(this).data('comment-id');
|
||||
|
||||
Reference in new issue
Block a user