Skip to content

Commit d885025

Browse files
committed
prevent status button on uploading images
1 parent ddbefb7 commit d885025

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

web_src/js/features/repo-issue.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -674,10 +674,11 @@ export async function initSingleCommentEditor($commentForm) {
674674
const commentButton = document.querySelector('#comment-button');
675675
opts.onContentChanged = (editor) => {
676676
const editorText = editor.value().trim();
677-
const isUploading = editor.attachedDropzoneInst.getUploadingFiles().length != 0;
677+
const isUploading = editor.isUploading();
678678

679679
if (statusButton) {
680680
statusButton.textContent = statusButton.getAttribute(editorText ? 'data-status-and-comment' : 'data-status');
681+
statusButton.disabled = isUploading;
681682
}
682683
if (commentButton) {
683684
commentButton.disabled = !editorText || isUploading;

0 commit comments

Comments
 (0)