Browse Source

Updated action categories, adding a logic specific entry for the conditional step. Shift the action text above the button.

pull/6676/head
Dean 4 years ago
parent
commit
24cfc17a78
  1. 6
      packages/builder/src/components/design/settings/controls/ButtonActionEditor/ButtonActionEditor.svelte
  2. 10
      packages/builder/src/components/design/settings/controls/ButtonActionEditor/manifest.json

6
packages/builder/src/components/design/settings/controls/ButtonActionEditor/ButtonActionEditor.svelte

@ -76,8 +76,9 @@
} set` } set`
</script> </script>
<ActionButton on:click={openDrawer}>Define actions</ActionButton>
<div class="action-count">{actionText}</div> <div class="action-count">{actionText}</div>
<ActionButton on:click={openDrawer}>Define actions</ActionButton>
<Drawer bind:this={drawer} title={"Actions"}> <Drawer bind:this={drawer} title={"Actions"}>
<svelte:fragment slot="description"> <svelte:fragment slot="description">
Define what actions to run. Define what actions to run.
@ -94,6 +95,7 @@
<style> <style>
.action-count { .action-count {
padding-top: var(--spacing-s); padding-bottom: var(--spacing-s);
font-weight: 600;
} }
</style> </style>

10
packages/builder/src/components/design/settings/controls/ButtonActionEditor/manifest.json

@ -29,7 +29,7 @@
}, },
{ {
"name": "Navigate To", "name": "Navigate To",
"type": "ui/ux", "type": "application",
"component": "NavigateTo" "component": "NavigateTo"
}, },
{ {
@ -45,7 +45,7 @@
}, },
{ {
"name": "Trigger Automation", "name": "Trigger Automation",
"type": "ui/ux", "type": "application",
"component": "TriggerAutomation" "component": "TriggerAutomation"
}, },
{ {
@ -70,12 +70,12 @@
}, },
{ {
"name": "Log Out", "name": "Log Out",
"type": "ui/ux", "type": "application",
"component": "LogOut" "component": "LogOut"
}, },
{ {
"name": "Close Screen Modal", "name": "Close Screen Modal",
"type": "ui/ux", "type": "application",
"component": "CloseScreenModal" "component": "CloseScreenModal"
}, },
{ {
@ -107,7 +107,7 @@
}, },
{ {
"name": "Continue if / Stop if", "name": "Continue if / Stop if",
"type": "ui/ux", "type": "logic",
"component": "ContinueIf", "component": "ContinueIf",
"dependsOnFeature": "continueIfAction" "dependsOnFeature": "continueIfAction"
} }

Loading…
Cancel
Save