{{#link-to "settings.integrations" data-test-link="integrations-back"}}Integrations{{/link-to}} {{svg-jar "arrow-right"}} {{integration.name}}

{{gh-task-button task=save class="gh-btn gh-btn-blue gh-btn-icon" data-test-button="save"}}

Configuration

{{#aspect-ratio-box class="flex items-center h-100" ratio="1/1" base="height"}} {{#unless integration.iconImage}} {{svg-jar "integration" class="w11 h11"}} {{/unless}} {{/aspect-ratio-box}} {{#gh-uploader extensions=imageExtensions onComplete=(action "setIconImage") as |uploader| }} {{#if uploader.isUploading}}
{{uploader.progressBar}}
{{else}} {{/if}}
{{gh-file-input name="iconImage" multiple=false action=uploader.setFiles accept=imageMimeTypes data-test-file-input="icon"}}
{{/gh-uploader}}
{{#gh-validation-status-container class="flex flex-column w-100 mr3" errors=integration.errors hasValidated=integration.hasValidated property="name" }} {{gh-text-input id="integration_name" class="gh-input mt1 mb1" type="text" value=(readonly integration.name) input=(action (mut integration.name) value="target.value") focus-out=(action "validate" "name" target=integration) data-test-input="name" }} {{gh-error-message errors=integration.errors property="name" data-test-error="name" class="ma0"}} {{/gh-validation-status-container}} {{#gh-validation-status-container class="flex flex-column w-100 mr3" errors=integration.errors hasValidated=integration.hasValidated property="decription" }} {{gh-text-input id="integration_description" class="gh-input mt1" type="text" value=(readonly integration.description) input=(action (mut integration.description) value="target.value") focus-out=(action "validate" "description" target=integration) data-test-input="description" }} {{gh-error-message errors=integration.errors property="description" data-test-error="description" class="ma0"}} {{/gh-validation-status-container}}
Content API Key
{{this.integration.contentKey.secret}}
Admin API Key
{{this.integration.adminKey.secret}}
API URL
{{this.apiUrl}}

Webhooks

{{#each filteredWebhooks as |webhook|}} {{else}} {{/each}} {{#if filteredWebhooks}} {{/if}}
Name Event URL Last triggered
{{webhook.name}} {{event-name webhook.event}} {{webhook.targetUrl}} {{or webhook.lastTriggeredAtUTC "Not triggered"}}
{{#link-to "settings.integration.webhooks.edit" integration webhook data-test-link="edit-webhook"}} {{svg-jar "pen" class="w6 h6 fill-midgrey pa1 mr1"}} {{/link-to}}

No webhooks configured

{{#link-to "settings.integration.webhooks.new" integration classNames="flex items-center" data-test-link="add-webhook"}}
{{svg-jar "add" class="w3 h3 fill-blue-d1"}} Add webhook
{{/link-to}}
{{#link-to "settings.integration.webhooks.new" integration classNames="flex items-center" data-test-link="add-webhook"}}
{{svg-jar "add" class="w3 h3 fill-blue-d1"}} Add webhook
{{/link-to}}
{{#if showUnsavedChangesModal}} {{gh-fullscreen-modal "leave-settings" confirm=(action "leaveScreen") close=(action "toggleUnsavedChangesModal") modifier="action wide"}} {{/if}} {{#if showDeleteIntegrationModal}} {{gh-fullscreen-modal "delete-integration" confirm=(action "deleteIntegration") close=(action "cancelIntegrationDeletion") modifier="action wide"}} {{/if}} {{#if webhookToDelete}} {{gh-fullscreen-modal "delete-webhook" confirm=(action "deleteWebhook") close=(action "cancelWebhookDeletion") modifier="action wide"}} {{/if}} {{outlet}}