mirror of
https://github.com/discourse/discourse.git
synced 2025-05-24 14:12:10 +08:00
DEV: global s/this.get\("(\w+)"\)/this.$1 (#7592)
This commit is contained in:
@ -29,7 +29,7 @@ export default Ember.Controller.extend({
|
||||
},
|
||||
|
||||
_addIncoming(eventId) {
|
||||
const incomingEventIds = this.get("incomingEventIds");
|
||||
const incomingEventIds = this.incomingEventIds;
|
||||
|
||||
if (incomingEventIds.indexOf(eventId) === -1) {
|
||||
incomingEventIds.pushObject(eventId);
|
||||
@ -38,7 +38,7 @@ export default Ember.Controller.extend({
|
||||
|
||||
actions: {
|
||||
loadMore() {
|
||||
this.get("model").loadMore();
|
||||
this.model.loadMore();
|
||||
},
|
||||
|
||||
ping() {
|
||||
@ -60,12 +60,12 @@ export default Ember.Controller.extend({
|
||||
|
||||
ajax(`/admin/api/web_hooks/${webHookId}/events/bulk`, {
|
||||
type: "GET",
|
||||
data: { ids: this.get("incomingEventIds") }
|
||||
data: { ids: this.incomingEventIds }
|
||||
}).then(data => {
|
||||
const objects = data.map(event =>
|
||||
this.store.createRecord("web-hook-event", event)
|
||||
);
|
||||
this.get("model").unshiftObjects(objects);
|
||||
this.model.unshiftObjects(objects);
|
||||
this.set("incomingEventIds", []);
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user