mirror of
https://github.com/discourse/discourse.git
synced 2024-11-28 11:04:59 +08:00
Merge pull request #2914 from techAPJ/patch-2
user proper naming conversation
This commit is contained in:
commit
9c862337b2
|
@ -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);
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
@ -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}}
|
||||
|
|
Loading…
Reference in New Issue
Block a user