Skip to content

Commit 779a19b

Browse files
committed
Tweaks to layout and copy.
1 parent 42200e2 commit 779a19b

File tree

2 files changed

+27
-25
lines changed
  • src/Umbraco.Cms.Integrations.Automation.Zapier/App_Plugins/UmbracoCms.Integrations/Automation/Zapier

2 files changed

+27
-25
lines changed

src/Umbraco.Cms.Integrations.Automation.Zapier/App_Plugins/UmbracoCms.Integrations/Automation/Zapier/dashboard.html

Lines changed: 26 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,6 @@
88
This allows you to automate tasks without having to build this integration yourself.
99
When an event happens in one app, Zapier can tell another app to perform (or do) a particular action - no code necessary.
1010
</p>
11-
<p>
12-
Automation is simply setting something up to run automatically. Automation is all around you, even if you don't realize it.
13-
Take your smartphone, for example. You receive alerts whenever you receive a text message, a voice mail, or an email.
14-
</p>
1511
<p>
1612
The heart of any automation boils down to this simple command: <b>WHEN</b> <span>this happens</span> <b>THEN</b> <span>do that</span>.
1713
</p>
@@ -20,15 +16,18 @@
2016
Every Zap has a trigger and one or more actions. A trigger is an event that starts a Zap, and an action is what your Zap does for you.
2117
</p>
2218
<p>
23-
When a Zap runs, each action it completes counts as one task.
24-
Zap triggers use webhooks to intercept the client's request and to execute the actions. Webhooks are automated messages sent from apps when something happens.
25-
Read Zapier Webhooks guide <a href="https://zapier.com/blog/what-are-webhooks/">here</a>.
19+
Zap triggers use webhooks to execute the actions. Webhooks are automated messages sent from apps when something happens.
20+
</p>
21+
<p>
22+
You can initiate your automation when a content item of a particular document type is published in Umbraco.
2623
</p>
2724
<p>
28-
Using the filters below, you can map content items with Zap triggers Webhooks, and you will be able to: <br/>
29-
&nbsp; - Enable Zap trigger invoke when a specific content is published <br/>
30-
&nbsp; - Trigger a sample request using the Webhook URL and then reviewing the request data while creating the Zap trigger
25+
Using the filters below, map content items with Zap triggered webhooks. This will:
3126
</p>
27+
<ul>
28+
<li>Enable Zap invocations when content of the specified document type is published.</li>
29+
<li>Trigger a sample request using the webhook URL to review when creating the Zap trigger.</li>
30+
</ul>
3231
</div>
3332
<div class="mt3">
3433
<input id="inWebHookUrl" type="text" ng-model="vm.webHookUrl" class="w-20 mb0" placeholder="WebHook URL" no-dirty-check />
@@ -45,7 +44,7 @@
4544
</umb-box-content>
4645
</umb-box>
4746
<umb-box>
48-
<umb-box-header title="Results"></umb-box-header>
47+
<umb-box-header title="Registered Webhooks"></umb-box-header>
4948
<umb-content>
5049
<div class="mt2">
5150

@@ -55,9 +54,8 @@
5554
<!-- Listviews head section -->
5655
<div class="umb-table-head">
5756
<div class="umb-table-row">
58-
<div class="umb-table-cell">
59-
</div>
60-
<div class="umb-table-cell">
57+
<div class="umb-table-cell"></div>
58+
<div class="umb-table-cell umb-table__name">
6159
<a class="umb-table-head__link" href="#" prevent-default>
6260
<span>Content Type Name</span>
6361
</a>
@@ -67,7 +65,7 @@
6765
<span>WebHook URL</span>
6866
</a>
6967
</div>
70-
<div class="mr7"></div>
68+
<div class="umb-table-cell"></div>
7169
</div>
7270
</div>
7371

@@ -76,21 +74,25 @@
7674
<div class="umb-table-row"
7775
ng-repeat="row in vm.contentConfigs track by $index">
7876
<div class="umb-table-cell"></div>
79-
<div class="umb-table-cell">
77+
<div class="umb-table-cell umb-table__name">
8078
<span ng-bind="row.contentTypeName"></span>
8179
</div>
8280
<div class="umb-table-cell">
8381
<span ng-bind="row.webHookUrl"></span>
8482
</div>
85-
<div class="mr7" style="position: relative;">
86-
<a href="javascript:void(0)" ng-click="vm.onTrigger(row.contentTypeName, row.webHookUrl)" title="trigger webHook">
87-
<i class="icon-play"></i>
88-
</a>
89-
<a href="javascript:void(0)" ng-click="row.showDeletePrompt = true">
90-
<i class="icon-trash"></i>
91-
</a>
83+
<div class="umb-table-cell">
84+
<umb-button action="vm.onTrigger(row.contentTypeName, row.webHookUrl)"
85+
label="Trigger Webhook"
86+
type="button"
87+
button-style="info">
88+
</umb-button>
89+
<umb-button action="row.showDeletePrompt = true"
90+
label="Delete"
91+
type="button"
92+
button-style="danger">
93+
</umb-button>
9294
<umb-confirm-action ng-if="row.showDeletePrompt"
93-
direction="left"
95+
direction="right"
9496
on-confirm="vm.onDelete(row.id)"
9597
on-cancel="row.showDeletePrompt = false">
9698
</umb-confirm-action>
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8" ?>
22
<language>
33
<area alias="dashboardTabs">
4-
<key alias="zapierDashboard">Zapier Settings</key>
4+
<key alias="zapierDashboard">Zapier Integrations</key>
55
</area>
66
</language>

0 commit comments

Comments
 (0)