discourse/app/assets/javascripts/admin/controllers/admin-web-hooks-show-events.js.es6

15 lines
360 B
Text
Raw Normal View History

2016-06-15 13:49:57 -04:00
import { ajax } from 'discourse/lib/ajax';
import { popupAjaxError } from 'discourse/lib/ajax-error';
export default Ember.Controller.extend({
actions: {
loadMore() {
this.get('model').loadMore();
},
ping() {
ajax(`/admin/web_hooks/${this.get('model.extras.web_hook_id')}/ping`, {type: 'POST'}).catch(popupAjaxError);
}
}
});