-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
upload attachment error handling working e2e, but still in progress
- shortened mostRecentUploadError to uploadError - fixed attachments module scss indenting - added upload_in_progress styles for temba-loading - updated upload_error styles for upload error msg - added onUploading fn as param to renderAttachments - added onUploading fn as param to onChange handleUploadFile fn - added onLoading fn as param to handleUploadFile fn - adding handleAttachmentUploading to SendMsgForm & MsgLocalizationForm - added temba-loading to JSX IntrinsicElements todo - need to figure out why response is returning "request entity is too large" when it should be returning "Unsupported file type" or "Limit for file uploads is 25 MB"
- Loading branch information
Showing
7 changed files
with
121 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
72 changes: 38 additions & 34 deletions
72
src/components/flow/actions/sendmsg/attachments.module.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,47 @@ | ||
@import 'variables.module.scss'; | ||
|
||
.type_choice { | ||
display: inline-block; | ||
width: 180px; | ||
} | ||
|
||
.url_attachment { | ||
margin-bottom: 8px; | ||
display: flex; | ||
align-items: center; | ||
|
||
.upload { | ||
|
||
} | ||
|
||
.remove_upload { | ||
margin-left: 8px; | ||
margin-top: 4px; | ||
display: inline-block; | ||
} | ||
|
||
.url { | ||
display: inline-block; | ||
margin-left: 8px; | ||
width: 329px; | ||
margin-right: 10px; | ||
input { | ||
vertical-align: top; | ||
height: 28px !important; | ||
margin-top: -11px; | ||
width: 100%; | ||
font-size: 12px; | ||
} | ||
} | ||
|
||
.remove { | ||
margin-top: 4px; | ||
.url_attachment { | ||
margin-bottom: 8px; | ||
display: flex; | ||
align-items: center; | ||
|
||
.remove_upload { | ||
margin-left: 8px; | ||
margin-top: 4px; | ||
display: inline-block; | ||
} | ||
|
||
.url { | ||
display: inline-block; | ||
margin-left: 8px; | ||
width: 329px; | ||
margin-right: 10px; | ||
input { | ||
vertical-align: top; | ||
height: 28px !important; | ||
margin-top: -11px; | ||
width: 100%; | ||
font-size: 12px; | ||
} | ||
} | ||
|
||
.upload_error { | ||
color: red; | ||
.remove { | ||
margin-top: 4px; | ||
} | ||
|
||
} | ||
|
||
#upload_in_progress { | ||
margin-left: 10px; | ||
padding-top: 0px | ||
} | ||
|
||
.upload_error { | ||
color: red; | ||
font-size: 12px; | ||
margin-left: 10px | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters