This repository has been archived on 2023-03-18. You can view files and clone it, but cannot push or open issues or pull requests.
osr-discourse-src/app/assets/javascripts/discourse/components/reviewable-queued-post.js.es6
Robin Ward e47e0af123
FEATURE: Allow viewing of raw emails for reviewable queued posts (#7910)
If a post arrives via email but must be reviewed, we now show an
icon that can be clicked to view the raw contents of the email.

This is useful if Discourse's email parser is acting odd and the user
reviewing the post wants to know what the original contents were before
approving/rejecting the post.
2019-07-19 11:56:14 -04:00

10 lines
220 B
JavaScript

import showModal from "discourse/lib/show-modal";
export default Ember.Component.extend({
actions: {
showRawEmail() {
showModal("raw-email").set("rawEmail", this.reviewable.payload.raw_email);
}
}
});