Skip to content

Commit

Permalink
Merge pull request #3708 from parasharrajat/composer-image
Browse files Browse the repository at this point in the history
Feature: Send image with text via composer
  • Loading branch information
Jag96 authored Jun 22, 2021
2 parents 76c3157 + 6283e8e commit 1669c45
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/components/AttachmentModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ class AttachmentModal extends PureComponent {
>
<HeaderWithCloseButton
title={this.props.isUploadingAttachment
? this.props.translate('reportActionCompose.uploadAttachment')
? this.props.translate('reportActionCompose.sendAttachment')
: this.props.translate('common.attachment')}
shouldShowBorderBottom
shouldShowDownloadButton
Expand All @@ -128,7 +128,7 @@ class AttachmentModal extends PureComponent {
success
style={[styles.buttonConfirm]}
textStyles={[styles.buttonConfirmText]}
text={this.props.translate('common.upload')}
text={this.props.translate('common.send')}
onPress={this.submitAndClose}
/>
)}
Expand Down
4 changes: 2 additions & 2 deletions src/languages/en.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
export default {
common: {
cancel: 'Cancel',
upload: 'Upload',
yes: 'Yes',
no: 'No',
attachment: 'Attachment',
Expand Down Expand Up @@ -49,6 +48,7 @@ export default {
invite: 'Invite',
iAcceptThe: 'I accept the ',
passwordCannotBeBlank: 'Password cannot be blank',
send: 'Send',
},
attachmentPicker: {
cameraPermissionRequired: 'Camera Permission Required',
Expand Down Expand Up @@ -92,7 +92,7 @@ export default {
phrase3: 'Your payments get to you as fast as you can get your point across.',
},
reportActionCompose: {
uploadAttachment: 'Upload Attachment',
sendAttachment: 'Send Attachment',
addAttachment: 'Add Attachment',
writeSomething: 'Write something...',
youAppearToBeOffline: 'You appear to be offline.',
Expand Down
4 changes: 2 additions & 2 deletions src/languages/es.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
export default {
common: {
cancel: 'Cancelar',
upload: 'Subir',
yes: 'Si',
no: 'No',
attachment: 'Archivo Adjunto',
Expand Down Expand Up @@ -45,6 +44,7 @@ export default {
invite: 'Invitar',
iAcceptThe: 'Acepto los ',
passwordCannotBeBlank: 'La contraseña no puede estar vacía',
send: 'Enviar',
},
attachmentPicker: {
cameraPermissionRequired: 'Se necesita permiso para usar la cámara',
Expand Down Expand Up @@ -88,7 +88,7 @@ export default {
phrase3: 'Tus pagos llegan tan rápido como tus mensajes.',
},
reportActionCompose: {
uploadAttachment: 'Subir Archivo Adjunto',
sendAttachment: 'Enviar adjunto',
addAttachment: 'Agregar Archivo Adjunto',
writeSomething: 'Escribe algo...',
youAppearToBeOffline: 'Parece que estás desconectado.',
Expand Down
1 change: 1 addition & 0 deletions src/pages/home/report/ReportActionCompose.js
Original file line number Diff line number Diff line change
Expand Up @@ -403,6 +403,7 @@ class ReportActionCompose extends React.Component {
<AttachmentModal
isUploadingAttachment
onConfirm={(file) => {
this.submitForm();
addAction(this.props.reportID, '', file);
this.setTextInputShouldClear(false);
}}
Expand Down

0 comments on commit 1669c45

Please sign in to comment.