mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-30 21:40:39 +03:00
✨ Added post, page, and tag related webhook trigger events
refs https://github.com/TryGhost/Ghost/issues/10461 - added new webhook events to the event selection dropdown with grouping
This commit is contained in:
parent
8617dba252
commit
fb7db69ffe
@ -1,9 +1,37 @@
|
||||
import {helper} from '@ember/component/helper';
|
||||
|
||||
export const AVAILABLE_EVENTS = [
|
||||
{event: 'site.changed', name: 'Site Changed (rebuild)'},
|
||||
{event: 'subscriber.added', name: 'Subscriber Added'},
|
||||
{event: 'subscriber.deleted', name: 'Subscriber Deleted'}
|
||||
// GROUPNAME: Global
|
||||
{event: 'site.changed', name: 'Site changed (rebuild)', group: 'Global'},
|
||||
|
||||
// GROUPNAME: Posts
|
||||
{event: 'post.added', name: 'Post created', group: 'Posts'},
|
||||
{event: 'post.deleted', name: 'Post deleted', group: 'Posts'},
|
||||
{event: 'post.edited', name: 'Post updated', group: 'Posts'},
|
||||
{event: 'post.published', name: 'Post published', group: 'Posts'},
|
||||
{event: 'post.published.edited', name: 'Published post updated', group: 'Posts'},
|
||||
{event: 'post.unpublished', name: 'Post unpublished', group: 'Posts'},
|
||||
{event: 'post.tag.attached', name: 'Tag added to post', group: 'Posts'},
|
||||
{event: 'post.tag.detached', name: 'Tag removed from post', group: 'Posts'},
|
||||
|
||||
// GROUPNAME: Pages
|
||||
{event: 'page.added', name: 'Page created', group: 'Pages'},
|
||||
{event: 'page.deleted', name: 'Page deleted', group: 'Pages'},
|
||||
{event: 'page.edited', name: 'Page udpated', group: 'Pages'},
|
||||
{event: 'page.published', name: 'Page published', group: 'Pages'},
|
||||
{event: 'page.published.edited', name: 'Published page updated', group: 'Pages'},
|
||||
{event: 'page.unpublished', name: 'Page unpublished', group: 'Pages'},
|
||||
{event: 'page.tag.attached', name: 'Tag added to page', group: 'Pages'},
|
||||
{event: 'page.tag.detached', name: 'Tag removed from page', group: 'Pages'},
|
||||
|
||||
// GROUPNAME: Tags
|
||||
{event: 'tag.added', name: 'Tag created', group: 'Tags'},
|
||||
{event: 'tag.edited', name: 'Tag updated', group: 'Tags'},
|
||||
{event: 'tag.deleted', name: 'Tag deleted', group: 'Tags'},
|
||||
|
||||
// GROUPNAME: Subscribers
|
||||
{event: 'subscriber.added', name: 'Subscriber added', group: 'Subscribers'},
|
||||
{event: 'subscriber.deleted', name: 'Subscriber deleted', group: 'Subscribers'}
|
||||
];
|
||||
|
||||
export function eventName([event]/*, hash*/) {
|
||||
|
@ -31,6 +31,7 @@
|
||||
optionValuePath="event"
|
||||
optionLabelPath="name"
|
||||
optionTargetPath="event"
|
||||
groupLabelPath="group"
|
||||
class="mt1"
|
||||
includeBlank=true
|
||||
prompt="Select an event"
|
||||
|
Loading…
Reference in New Issue
Block a user