Skip to content
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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions src/libs/actions/Report.js
Original file line number Diff line number Diff line change
Expand Up @@ -1132,6 +1132,19 @@ function openReport(reportID) {
});
}

/**
* Gets the IOUReport and the associated report actions.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NAB:

Suggested change
* Gets the IOUReport and the associated report actions.
* Gets the IOUReport and its associated report actions.

*
* @param {Number} chatReportID
* @param {Number} iouReportID
*/
function openPaymentDetailsPage(chatReportID, iouReportID) {
API.read('OpenPaymentDetailsPage', {
reportID: chatReportID,
iouReportID,
});
}

/**
* Marks the new report actions as read
*
Expand Down Expand Up @@ -1649,4 +1662,5 @@ export {
markCommentAsUnread,
readNewestAction,
openReport,
openPaymentDetailsPage,
};
2 changes: 1 addition & 1 deletion src/pages/iou/IOUDetailsModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ class IOUDetailsModal extends Component {
}

fetchData() {
Report.fetchIOUReportByID(this.props.route.params.iouReportID, this.props.route.params.chatReportID, true);
Report.openPaymentDetailsPage(this.props.route.params.chatReportID, this.props.route.params.iouReportID);
}

/**
Expand Down