mirror of
https://github.com/discourse/discourse.git
synced 2025-05-23 21:04:33 +08:00
FEATURE: Webhooks.
This commit is contained in:

committed by
Guo Xiang Tan

parent
1f70fc9e11
commit
9ce61b4586
@ -0,0 +1,14 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
});
|
Reference in New Issue
Block a user