DEV: global s/this.get\("(\w+)"\)/this.$1 (#7592)

This commit is contained in:
Joffrey JAFFEUX
2019-05-27 10:15:39 +02:00
committed by GitHub
parent 170c66c190
commit bfea922167
389 changed files with 2448 additions and 2460 deletions

View File

@ -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", []);
});
}