Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

issue_869: Fixed infinity loading status of attachments #893

Merged
merged 4 commits into from Jan 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions manifest.json
Expand Up @@ -3,7 +3,7 @@
"name": "JDN",
"description": "JDN – helps Test Automation Engineer to create Page Objects in the test automation framework and speed up test development",
"devtools_page": "index.html",
"version": "3.6.334",
"version": "3.6.335",
"icons": {
"128": "icon128.png"
},
Expand All @@ -19,4 +19,4 @@
"content_security_policy": {
"extension_pages": "script-src 'self'; object-src 'self'; style-src 'self' 'unsafe-inline' https://fonts.googleapis.com; font-src 'self' https://fonts.gstatic.com;"
}
}
}
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "jdn-ai-chrome-extension",
"version": "3.6.334",
"version": "3.6.335",
"description": "jdn-ai chrome extension",
"scripts": {
"start": "webpack --watch --env devenv",
Expand Down
7 changes: 5 additions & 2 deletions src/features/reportProblem/ReportProblem.tsx
Expand Up @@ -177,7 +177,10 @@ export const ReportProblem = () => {
<DialogWithForm
modalProps={{
okButtonProps: {
disabled: fileList.length > MAX_COUNT_FILES || filesSize > MAX_FILES_SIZE_MB,
disabled:
fileList.length > MAX_COUNT_FILES ||
filesSize > MAX_FILES_SIZE_MB ||
fileList.some((file) => file.status === "error"),
},
title: "Report a problem",
open: isModalOpen,
Expand Down Expand Up @@ -251,7 +254,7 @@ export const ReportProblem = () => {
</React.Fragment>
}
>
<Upload name="attachments" onChange={handleUploadChange} {...{ fileList }} multiple>
<Upload name="attachments" onChange={handleUploadChange} multiple>
<Tooltip
placement="right"
title={getTextforUploadButtonTooltip()}
Expand Down