mirror of
https://github.com/discourse/discourse.git
synced 2026-08-11 13:35:20 -05:00
DEV: global s/this.get\("(\w+)"\)/this.$1 (#7592)
This commit is contained in:
@@ -12,18 +12,18 @@ export default Ember.Controller.extend({
|
||||
|
||||
actions: {
|
||||
refresh() {
|
||||
const model = this.get("model");
|
||||
const model = this.model;
|
||||
|
||||
this.set("loading", true);
|
||||
this.set("sentEmail", false);
|
||||
|
||||
let username = this.get("username");
|
||||
let username = this.username;
|
||||
if (!username) {
|
||||
username = this.currentUser.get("username");
|
||||
this.set("username", username);
|
||||
}
|
||||
|
||||
EmailPreview.findDigest(username, this.get("lastSeen")).then(email => {
|
||||
EmailPreview.findDigest(username, this.lastSeen).then(email => {
|
||||
model.setProperties(
|
||||
email.getProperties("html_content", "text_content")
|
||||
);
|
||||
@@ -40,9 +40,9 @@ export default Ember.Controller.extend({
|
||||
this.set("sentEmail", false);
|
||||
|
||||
EmailPreview.sendDigest(
|
||||
this.get("username"),
|
||||
this.get("lastSeen"),
|
||||
this.get("email")
|
||||
this.username,
|
||||
this.lastSeen,
|
||||
this.email
|
||||
)
|
||||
.then(result => {
|
||||
if (result.errors) {
|
||||
|
||||
Reference in New Issue
Block a user