We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ddbefb7 commit d885025Copy full SHA for d885025
web_src/js/features/repo-issue.ts
@@ -674,10 +674,11 @@ export async function initSingleCommentEditor($commentForm) {
674
const commentButton = document.querySelector('#comment-button');
675
opts.onContentChanged = (editor) => {
676
const editorText = editor.value().trim();
677
- const isUploading = editor.attachedDropzoneInst.getUploadingFiles().length != 0;
+ const isUploading = editor.isUploading();
678
679
if (statusButton) {
680
statusButton.textContent = statusButton.getAttribute(editorText ? 'data-status-and-comment' : 'data-status');
681
+ statusButton.disabled = isUploading;
682
}
683
if (commentButton) {
684
commentButton.disabled = !editorText || isUploading;
0 commit comments