user proper naming conversation

This commit is contained in:
Arpit Jalan 2014-10-24 21:19:38 +05:30
parent 842dbed74a
commit 433d218681
2 changed files with 5 additions and 5 deletions

View File

@ -12,12 +12,12 @@ import ObjectController from 'discourse/controllers/object';
@module Discourse
**/
export default ObjectController.extend(ModalFunctionality, {
raw_email: "",
rawEmail: "",
loadRawEmail: function(postId) {
var self = this;
Discourse.Post.loadRawEmail(postId).then(function (raw_email) {
self.set("raw_email", raw_email);
Discourse.Post.loadRawEmail(postId).then(function (result) {
self.set("rawEmail", result);
});
}

View File

@ -1,6 +1,6 @@
<div class="modal-body">
{{#if raw_email}}
{{textarea value=raw_email class="raw-email-textarea"}}
{{#if rawEmail}}
{{textarea value=rawEmail class="raw-email-textarea"}}
{{else}}
{{i18n raw_email.not_available}}
{{/if}}