Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
54 changes: 29 additions & 25 deletions src/pages/home/report/ReportActionCompose.js
Original file line number Diff line number Diff line change
Expand Up @@ -493,19 +493,21 @@ class ReportActionCompose extends React.Component {
<AttachmentPicker>
{({openPicker}) => (
<>
<Tooltip text={this.props.translate('reportActionCompose.addAction')}>
<TouchableOpacity
onPress={(e) => {
e.preventDefault();
this.setMenuVisibility(true);
}}
style={styles.chatItemAttachButton}
underlayColor={themeColors.componentBG}
disabled={isBlockedFromConcierge || isArchivedChatRoom}
>
<Icon src={Plus} />
</TouchableOpacity>
</Tooltip>
<View style={[styles.justifyContentEnd]}>
<Tooltip text={this.props.translate('reportActionCompose.addAction')}>
<TouchableOpacity
onPress={(e) => {
e.preventDefault();
this.setMenuVisibility(true);
}}
style={styles.chatItemAttachButton}
underlayColor={themeColors.componentBG}
disabled={isBlockedFromConcierge || isArchivedChatRoom}
>
<Icon src={Plus} />
</TouchableOpacity>
</Tooltip>
</View>
<PopoverMenu
isVisible={this.state.isMenuVisible}
onClose={() => this.setMenuVisibility(false)}
Expand Down Expand Up @@ -645,18 +647,20 @@ class ReportActionCompose extends React.Component {
</Tooltip>
)}
</Pressable>
<Tooltip text={this.props.translate('common.send')}>
<TouchableOpacity
style={[styles.chatItemSubmitButton,
this.state.isCommentEmpty
? styles.buttonDisable : styles.buttonSuccess]}
onPress={this.submitForm}
underlayColor={themeColors.componentBG}
disabled={this.state.isCommentEmpty || isBlockedFromConcierge || isArchivedChatRoom}
>
<Icon src={Send} fill={themeColors.componentBG} />
</TouchableOpacity>
</Tooltip>
<View style={[styles.justifyContentEnd]}>
<Tooltip text={this.props.translate('common.send')}>
<TouchableOpacity
style={[styles.chatItemSubmitButton,
this.state.isCommentEmpty
? styles.buttonDisable : styles.buttonSuccess]}
onPress={this.submitForm}
underlayColor={themeColors.componentBG}
disabled={this.state.isCommentEmpty || isBlockedFromConcierge || isArchivedChatRoom}
>
<Icon src={Send} fill={themeColors.componentBG} />
</TouchableOpacity>
</Tooltip>
</View>
</View>
{this.props.network.isOffline ? (
<View style={[styles.chatItemComposeSecondaryRow]}>
Expand Down