Skip to content

Commit 7f5c042

Browse files
author
markzegarelli
authored
Add ability to hide individual actions (#3533)
1 parent c662ffd commit 7f5c042

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

src/_includes/components/actions-fields.html

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
{% assign settings = currentIntegration.settings %}
1717
{% assign actions = currentIntegration.actions %}
1818
{% assign presets = currentIntegration.presets %}
19+
{% assign hiddenActions = page.hide_action | map: "id"%}
1920

2021

2122
{% if settings.size > 0 %}
@@ -81,7 +82,6 @@
8182

8283
## Available Actions
8384

84-
8585
Build your own Mappings! Combine supported [triggers](/docs/connections/destinations/actions/#components-of-a-destination-action) with the following {{currentIntegration.display_name | remove: " (Actions)"}}-supported actions:
8686

8787
<div class="premonition info">
@@ -93,10 +93,13 @@
9393
</div>
9494

9595
{% for action in actions %}
96+
{% unless hiddenActions contains action.id %}
9697
- [{{action.name}}](#{{action.name | slugify}})
98+
{% endunless %}
9799
{% endfor %}
98100

99101
{% for action in actions %}
102+
{% unless hiddenActions contains action.id %}
100103
### {{action.name}}
101104
<p>{{action.description | markdownify}}</p>
102105
<p>{{action.name}} is a <strong>{{action.platform | capitalize}}</strong> action. The default Trigger is:</p> <code>{{action.defaultTrigger}}</code>
@@ -136,6 +139,6 @@
136139
{% else %}
137140
This action does not have any fields.
138141
{% endif %}
139-
142+
{% endunless %}
140143
{% endfor %}
141144

src/connections/destinations/catalog/actions-intercom-web/index.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ hide-dossier: false
55
hidden: true
66
private: true
77
id: 62d9daff84a6bf190da9f592
8+
hide_action:
9+
- id: 5W984Qq59XEQnFYKXKHGeZ
10+
name: "Update User"
11+
- id: nqdBJoXJwFrzwoL1y45LYt
12+
name: "Update Company"
813
versions:
914
- name: 'Intercom Cloud Mode (Actions)'
1015
link: '/docs/connections/destinations/catalog/actions-intercom-cloud'

0 commit comments

Comments
 (0)