add plan tag to collect step
This commit is contained in:
parent
007f5ca8a9
commit
16ace6bf27
|
@ -6,6 +6,8 @@
|
||||||
Body,
|
Body,
|
||||||
Icon,
|
Icon,
|
||||||
notifications,
|
notifications,
|
||||||
|
Tags,
|
||||||
|
Tag,
|
||||||
} from "@budibase/bbui"
|
} from "@budibase/bbui"
|
||||||
import { automationStore, selectedAutomation } from "builderStore"
|
import { automationStore, selectedAutomation } from "builderStore"
|
||||||
import { admin, licensing } from "stores/portal"
|
import { admin, licensing } from "stores/portal"
|
||||||
|
@ -15,7 +17,7 @@
|
||||||
export let blockIdx
|
export let blockIdx
|
||||||
export let lastStep
|
export let lastStep
|
||||||
|
|
||||||
let syncWebhooksEnabled = $licensing.syncWebhooksEnabled
|
let syncWebhooksEnabled = false
|
||||||
let collectBlockAllowedSteps = [TriggerStepID.APP, TriggerStepID.WEBHOOK]
|
let collectBlockAllowedSteps = [TriggerStepID.APP, TriggerStepID.WEBHOOK]
|
||||||
let collectBlockExists = $selectedAutomation.definition.steps.some(
|
let collectBlockExists = $selectedAutomation.definition.steps.some(
|
||||||
step => step.stepId === ActionStepID.COLLECT
|
step => step.stepId === ActionStepID.COLLECT
|
||||||
|
@ -93,7 +95,7 @@
|
||||||
<ModalContent
|
<ModalContent
|
||||||
title="Add automation step"
|
title="Add automation step"
|
||||||
confirmText="Save"
|
confirmText="Save"
|
||||||
size="M"
|
size="L"
|
||||||
disabled={!selectedAction}
|
disabled={!selectedAction}
|
||||||
onConfirm={addBlockToAutomation}
|
onConfirm={addBlockToAutomation}
|
||||||
>
|
>
|
||||||
|
@ -138,7 +140,13 @@
|
||||||
<div class="item-body">
|
<div class="item-body">
|
||||||
<Icon name={action.icon} />
|
<Icon name={action.icon} />
|
||||||
<Body size="XS">{action.name}</Body>
|
<Body size="XS">{action.name}</Body>
|
||||||
{#if isDisabled}
|
{#if isDisabled && !syncWebhooksEnabled}
|
||||||
|
<div class="tag-color">
|
||||||
|
<Tags>
|
||||||
|
<Tag icon="LockClosed">Business</Tag>
|
||||||
|
</Tags>
|
||||||
|
</div>
|
||||||
|
{:else if isDisabled}
|
||||||
<Icon name="Help" tooltip={disabled[idx].message} />
|
<Icon name="Help" tooltip={disabled[idx].message} />
|
||||||
{/if}
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
|
@ -173,6 +181,7 @@
|
||||||
display: flex;
|
display: flex;
|
||||||
margin-left: var(--spacing-m);
|
margin-left: var(--spacing-m);
|
||||||
gap: var(--spacing-m);
|
gap: var(--spacing-m);
|
||||||
|
align-items: center;
|
||||||
}
|
}
|
||||||
.item-list {
|
.item-list {
|
||||||
display: grid;
|
display: grid;
|
||||||
|
@ -202,4 +211,8 @@
|
||||||
.disabled :global(.spectrum-Body) {
|
.disabled :global(.spectrum-Body) {
|
||||||
color: var(--spectrum-global-color-gray-600);
|
color: var(--spectrum-global-color-gray-600);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.tag-color :global(.spectrum-Tags-item) {
|
||||||
|
background: var(--spectrum-global-color-gray-200);
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
Loading…
Reference in New Issue