mirror of
https://github.com/discourse/discourse.git
synced 2024-11-28 11:18:26 +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
|
@module Discourse
|
||||||
**/
|
**/
|
||||||
export default ObjectController.extend(ModalFunctionality, {
|
export default ObjectController.extend(ModalFunctionality, {
|
||||||
raw_email: "",
|
rawEmail: "",
|
||||||
|
|
||||||
loadRawEmail: function(postId) {
|
loadRawEmail: function(postId) {
|
||||||
var self = this;
|
var self = this;
|
||||||
Discourse.Post.loadRawEmail(postId).then(function (raw_email) {
|
Discourse.Post.loadRawEmail(postId).then(function (result) {
|
||||||
self.set("raw_email", raw_email);
|
self.set("rawEmail", result);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<div class="modal-body">
|
<div class="modal-body">
|
||||||
{{#if raw_email}}
|
{{#if rawEmail}}
|
||||||
{{textarea value=raw_email class="raw-email-textarea"}}
|
{{textarea value=rawEmail class="raw-email-textarea"}}
|
||||||
{{else}}
|
{{else}}
|
||||||
{{i18n raw_email.not_available}}
|
{{i18n raw_email.not_available}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user