2019-06-23 03:35:23 -07:00
|
|
|
<template>
|
2022-08-03 04:06:53 -07:00
|
|
|
<div class="node-wrapper" :style="nodePosition" :id="nodeId">
|
2021-11-19 01:17:13 -08:00
|
|
|
<div class="select-background" v-show="isSelected"></div>
|
|
|
|
<div :class="{'node-default': true, 'touch-active': isTouchActive, 'is-touch-device': isTouchDevice}" :data-name="data.name" :ref="data.name">
|
|
|
|
<div :class="nodeClass" :style="nodeStyle" @dblclick="setNodeActive" @click.left="mouseLeftClick" v-touch:start="touchStart" v-touch:end="touchEnd">
|
|
|
|
<div v-if="!data.disabled" :class="{'node-info-icon': true, 'shift-icon': shiftOutputCount}">
|
|
|
|
<div v-if="hasIssues" class="node-issues">
|
|
|
|
<n8n-tooltip placement="bottom" >
|
2022-09-05 07:36:22 -07:00
|
|
|
<titled-list slot="content" :title="`${$locale.baseText('node.issues')}:`" :items="nodeIssues" />
|
2021-11-19 01:17:13 -08:00
|
|
|
<font-awesome-icon icon="exclamation-triangle" />
|
|
|
|
</n8n-tooltip>
|
|
|
|
</div>
|
|
|
|
<div v-else-if="waiting" class="waiting">
|
|
|
|
<n8n-tooltip placement="bottom">
|
2022-09-05 07:36:22 -07:00
|
|
|
<div slot="content" v-text="waiting"></div>
|
2021-11-19 01:17:13 -08:00
|
|
|
<font-awesome-icon icon="clock" />
|
|
|
|
</n8n-tooltip>
|
|
|
|
</div>
|
2022-07-20 08:50:39 -07:00
|
|
|
<span v-else-if="hasPinData" class="node-pin-data-icon">
|
|
|
|
<font-awesome-icon icon="thumbtack" />
|
|
|
|
<span v-if="workflowDataItems > 1" class="items-count"> {{ workflowDataItems }}</span>
|
|
|
|
</span>
|
2021-11-19 01:17:13 -08:00
|
|
|
<span v-else-if="workflowDataItems" class="data-count">
|
|
|
|
<font-awesome-icon icon="check" />
|
|
|
|
<span v-if="workflowDataItems > 1" class="items-count"> {{ workflowDataItems }}</span>
|
|
|
|
</span>
|
|
|
|
</div>
|
2019-07-25 12:57:27 -07:00
|
|
|
|
2021-12-15 04:16:53 -08:00
|
|
|
<div class="node-executing-info" :title="$locale.baseText('node.nodeIsExecuting')">
|
2021-11-19 01:17:13 -08:00
|
|
|
<font-awesome-icon icon="sync-alt" spin />
|
|
|
|
</div>
|
2021-08-21 05:11:32 -07:00
|
|
|
|
:sparkles: Improve Waiting Webhook call state in WF Canvas (#2430)
* N8N-2586 Improve Waiting Webhook call state in WF Canvas
* N8N-2586 Added watcher for showing Webhook's Node Tooltip on execution
* N8N-2586 Show helping tooltip for trigger node if wokrflow is running, it is a trigger node, if it is only one trigger node in WF
* N8N-2586 Rework/Move logic to computed property, Created getter for ActveTriggerNodesInWokrflow, Add style to trigger node's tooltip, remove comments
* N8N-2586 Added EventTriggerDescription prop in INodeTypeDescription Interface, Updated Logic for TriggerNode Tooltip based on the new prop
* N8N-2586 Add new use cases/watcher to show Trigger Nodes Tooltip / If has issues, if paused, if wokrlfow is running, Refactor Getter
* N8N-2586 Added z-index to tooltip, Added new Scenario for Tooltip if it is Draged&Droped on the WF
* N8N-2586 Refactor computed property for draged nodes
* N8N-2586 Fixed Conflicts
* N8N-2586 Fixed Tooltip
* N8N-2586 Dont show tooltip on core trigger nodes that execute automatically
* N8N-2586 Fixed Webhook tooltip when adding/deleting canvas during WF execution
* N8N-2586 Updated Logic, Simplify the code
* N8N-2586 Simplify Code
* N8N-2586 Added check for nodetype
* update dragging to use local state
* N8N-2586 Added eventTriggerDescription to Interval Node
* add comment, use new getter
* update to always check
Co-authored-by: Mutasem <mutdmour@gmail.com>
2021-11-25 14:33:41 -08:00
|
|
|
<div class="node-trigger-tooltip__wrapper">
|
2022-07-20 08:50:39 -07:00
|
|
|
<n8n-tooltip placement="top" manual :value="showTriggerNodeTooltip" popper-class="node-trigger-tooltip__wrapper--item">
|
:sparkles: Improve Waiting Webhook call state in WF Canvas (#2430)
* N8N-2586 Improve Waiting Webhook call state in WF Canvas
* N8N-2586 Added watcher for showing Webhook's Node Tooltip on execution
* N8N-2586 Show helping tooltip for trigger node if wokrflow is running, it is a trigger node, if it is only one trigger node in WF
* N8N-2586 Rework/Move logic to computed property, Created getter for ActveTriggerNodesInWokrflow, Add style to trigger node's tooltip, remove comments
* N8N-2586 Added EventTriggerDescription prop in INodeTypeDescription Interface, Updated Logic for TriggerNode Tooltip based on the new prop
* N8N-2586 Add new use cases/watcher to show Trigger Nodes Tooltip / If has issues, if paused, if wokrlfow is running, Refactor Getter
* N8N-2586 Added z-index to tooltip, Added new Scenario for Tooltip if it is Draged&Droped on the WF
* N8N-2586 Refactor computed property for draged nodes
* N8N-2586 Fixed Conflicts
* N8N-2586 Fixed Tooltip
* N8N-2586 Dont show tooltip on core trigger nodes that execute automatically
* N8N-2586 Fixed Webhook tooltip when adding/deleting canvas during WF execution
* N8N-2586 Updated Logic, Simplify the code
* N8N-2586 Simplify Code
* N8N-2586 Added check for nodetype
* update dragging to use local state
* N8N-2586 Added eventTriggerDescription to Interval Node
* add comment, use new getter
* update to always check
Co-authored-by: Mutasem <mutdmour@gmail.com>
2021-11-25 14:33:41 -08:00
|
|
|
<div slot="content" v-text="getTriggerNodeTooltip"></div>
|
|
|
|
<span />
|
|
|
|
</n8n-tooltip>
|
2022-07-20 08:50:39 -07:00
|
|
|
<n8n-tooltip
|
|
|
|
v-if="isTriggerNode"
|
|
|
|
placement="top"
|
|
|
|
manual
|
|
|
|
:value="pinDataDiscoveryTooltipVisible"
|
|
|
|
popper-class="node-trigger-tooltip__wrapper--item"
|
|
|
|
>
|
|
|
|
<template #content>
|
|
|
|
{{ $locale.baseText('node.discovery.pinData.canvas') }}
|
|
|
|
</template>
|
|
|
|
<span />
|
|
|
|
</n8n-tooltip>
|
:sparkles: Improve Waiting Webhook call state in WF Canvas (#2430)
* N8N-2586 Improve Waiting Webhook call state in WF Canvas
* N8N-2586 Added watcher for showing Webhook's Node Tooltip on execution
* N8N-2586 Show helping tooltip for trigger node if wokrflow is running, it is a trigger node, if it is only one trigger node in WF
* N8N-2586 Rework/Move logic to computed property, Created getter for ActveTriggerNodesInWokrflow, Add style to trigger node's tooltip, remove comments
* N8N-2586 Added EventTriggerDescription prop in INodeTypeDescription Interface, Updated Logic for TriggerNode Tooltip based on the new prop
* N8N-2586 Add new use cases/watcher to show Trigger Nodes Tooltip / If has issues, if paused, if wokrlfow is running, Refactor Getter
* N8N-2586 Added z-index to tooltip, Added new Scenario for Tooltip if it is Draged&Droped on the WF
* N8N-2586 Refactor computed property for draged nodes
* N8N-2586 Fixed Conflicts
* N8N-2586 Fixed Tooltip
* N8N-2586 Dont show tooltip on core trigger nodes that execute automatically
* N8N-2586 Fixed Webhook tooltip when adding/deleting canvas during WF execution
* N8N-2586 Updated Logic, Simplify the code
* N8N-2586 Simplify Code
* N8N-2586 Added check for nodetype
* update dragging to use local state
* N8N-2586 Added eventTriggerDescription to Interval Node
* add comment, use new getter
* update to always check
Co-authored-by: Mutasem <mutdmour@gmail.com>
2021-11-25 14:33:41 -08:00
|
|
|
</div>
|
|
|
|
|
2021-11-19 01:17:13 -08:00
|
|
|
<NodeIcon class="node-icon" :nodeType="nodeType" :size="40" :shrink="false" :disabled="this.data.disabled"/>
|
2019-06-23 03:35:23 -07:00
|
|
|
</div>
|
2021-11-19 01:17:13 -08:00
|
|
|
|
|
|
|
<div class="node-options no-select-on-click" v-if="!isReadOnly" v-show="!hideActions">
|
2021-12-15 04:16:53 -08:00
|
|
|
<div v-touch:tap="deleteNode" class="option" :title="$locale.baseText('node.deleteNode')" >
|
2021-11-19 06:35:38 -08:00
|
|
|
|
2019-07-25 12:57:27 -07:00
|
|
|
<font-awesome-icon icon="trash" />
|
|
|
|
</div>
|
2021-12-15 04:16:53 -08:00
|
|
|
<div v-touch:tap="disableNode" class="option" :title="$locale.baseText('node.activateDeactivateNode')">
|
2019-07-25 12:57:27 -07:00
|
|
|
<font-awesome-icon :icon="nodeDisabledIcon" />
|
|
|
|
</div>
|
2021-12-15 04:16:53 -08:00
|
|
|
<div v-touch:tap="duplicateNode" class="option" :title="$locale.baseText('node.duplicateNode')">
|
2019-07-25 12:57:27 -07:00
|
|
|
<font-awesome-icon icon="clone" />
|
|
|
|
</div>
|
2021-12-15 04:16:53 -08:00
|
|
|
<div v-touch:tap="setNodeActive" class="option touch" :title="$locale.baseText('node.editNode')" v-if="!isReadOnly">
|
2020-02-15 17:29:08 -08:00
|
|
|
<font-awesome-icon class="execute-icon" icon="cog" />
|
|
|
|
</div>
|
2021-12-15 04:16:53 -08:00
|
|
|
<div v-touch:tap="executeNode" class="option" :title="$locale.baseText('node.executeNode')" v-if="!isReadOnly && !workflowRunning">
|
2019-07-25 12:57:27 -07:00
|
|
|
<font-awesome-icon class="execute-icon" icon="play-circle" />
|
|
|
|
</div>
|
2019-06-23 03:35:23 -07:00
|
|
|
</div>
|
2021-11-19 01:17:13 -08:00
|
|
|
<div :class="{'disabled-linethrough': true, success: workflowDataItems > 0}" v-if="showDisabledLinethrough"></div>
|
2019-06-23 03:35:23 -07:00
|
|
|
</div>
|
2019-07-25 09:50:45 -07:00
|
|
|
<div class="node-description">
|
2022-09-21 01:20:29 -07:00
|
|
|
<div class="node-name ph-no-capture" :title="nodeTitle">
|
2021-11-20 06:58:21 -08:00
|
|
|
<p>
|
2021-11-29 00:34:59 -08:00
|
|
|
{{ nodeTitle }}
|
2021-11-20 06:58:21 -08:00
|
|
|
</p>
|
2021-12-03 00:49:48 -08:00
|
|
|
<p v-if="data.disabled">
|
2021-12-15 04:16:53 -08:00
|
|
|
({{ $locale.baseText('node.disabled') }})
|
2021-12-03 00:49:48 -08:00
|
|
|
</p>
|
2019-07-25 09:50:45 -07:00
|
|
|
</div>
|
|
|
|
<div v-if="nodeSubtitle !== undefined" class="node-subtitle" :title="nodeSubtitle">
|
2021-11-20 06:58:21 -08:00
|
|
|
{{ nodeSubtitle }}
|
2019-07-25 09:50:45 -07:00
|
|
|
</div>
|
2019-06-23 03:35:23 -07:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts">
|
|
|
|
|
|
|
|
import Vue from 'vue';
|
2022-07-20 08:50:39 -07:00
|
|
|
import {CUSTOM_API_CALL_KEY, LOCAL_STORAGE_PIN_DATA_DISCOVERY_CANVAS_FLAG, WAIT_TIME_UNLIMITED} from '@/constants';
|
2021-06-18 13:47:03 -07:00
|
|
|
import { externalHooks } from '@/components/mixins/externalHooks';
|
2019-06-23 03:35:23 -07:00
|
|
|
import { nodeBase } from '@/components/mixins/nodeBase';
|
2021-05-05 17:46:33 -07:00
|
|
|
import { nodeHelpers } from '@/components/mixins/nodeHelpers';
|
2019-07-12 05:14:36 -07:00
|
|
|
import { workflowHelpers } from '@/components/mixins/workflowHelpers';
|
2022-07-20 08:50:39 -07:00
|
|
|
import { pinData } from '@/components/mixins/pinData';
|
2019-06-23 03:35:23 -07:00
|
|
|
|
|
|
|
import {
|
|
|
|
INodeTypeDescription,
|
2021-11-19 01:17:13 -08:00
|
|
|
ITaskData,
|
2019-06-23 03:35:23 -07:00
|
|
|
NodeHelpers,
|
|
|
|
} from 'n8n-workflow';
|
|
|
|
|
|
|
|
import NodeIcon from '@/components/NodeIcon.vue';
|
2022-09-05 07:36:22 -07:00
|
|
|
import TitledList from '@/components/TitledList.vue';
|
2019-06-23 03:35:23 -07:00
|
|
|
|
|
|
|
import mixins from 'vue-typed-mixins';
|
|
|
|
|
2021-08-21 05:11:32 -07:00
|
|
|
import { get } from 'lodash';
|
2022-01-21 09:00:00 -08:00
|
|
|
import { getStyleTokenValue, getTriggerNodeServiceName } from './helpers';
|
2021-11-19 01:17:13 -08:00
|
|
|
import { INodeUi, XYPosition } from '@/Interface';
|
2021-08-21 05:11:32 -07:00
|
|
|
|
2022-07-20 08:50:39 -07:00
|
|
|
export default mixins(
|
|
|
|
externalHooks,
|
|
|
|
nodeBase,
|
|
|
|
nodeHelpers,
|
|
|
|
workflowHelpers,
|
|
|
|
pinData,
|
|
|
|
).extend({
|
2019-06-23 03:35:23 -07:00
|
|
|
name: 'Node',
|
|
|
|
components: {
|
2022-09-05 07:36:22 -07:00
|
|
|
TitledList,
|
2019-06-23 03:35:23 -07:00
|
|
|
NodeIcon,
|
|
|
|
},
|
|
|
|
computed: {
|
2022-10-13 01:38:41 -07:00
|
|
|
isScheduledGroup (): boolean {
|
|
|
|
return this.nodeType?.group.includes('schedule') === true;
|
|
|
|
},
|
2021-11-19 01:17:13 -08:00
|
|
|
nodeRunData(): ITaskData[] {
|
|
|
|
return this.$store.getters.getWorkflowResultDataByNodeName(this.data.name);
|
|
|
|
},
|
|
|
|
hasIssues (): boolean {
|
2022-07-20 08:50:39 -07:00
|
|
|
if (this.hasPinData) return false;
|
2021-11-19 01:17:13 -08:00
|
|
|
if (this.data.issues !== undefined && Object.keys(this.data.issues).length) {
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
},
|
|
|
|
workflowDataItems (): number {
|
|
|
|
const workflowResultDataNode = this.nodeRunData;
|
2019-06-24 01:28:18 -07:00
|
|
|
if (workflowResultDataNode === null) {
|
2019-06-23 03:35:23 -07:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2019-06-24 01:28:18 -07:00
|
|
|
return workflowResultDataNode.length;
|
2019-06-23 03:35:23 -07:00
|
|
|
},
|
:sparkles: Improve Waiting Webhook call state in WF Canvas (#2430)
* N8N-2586 Improve Waiting Webhook call state in WF Canvas
* N8N-2586 Added watcher for showing Webhook's Node Tooltip on execution
* N8N-2586 Show helping tooltip for trigger node if wokrflow is running, it is a trigger node, if it is only one trigger node in WF
* N8N-2586 Rework/Move logic to computed property, Created getter for ActveTriggerNodesInWokrflow, Add style to trigger node's tooltip, remove comments
* N8N-2586 Added EventTriggerDescription prop in INodeTypeDescription Interface, Updated Logic for TriggerNode Tooltip based on the new prop
* N8N-2586 Add new use cases/watcher to show Trigger Nodes Tooltip / If has issues, if paused, if wokrlfow is running, Refactor Getter
* N8N-2586 Added z-index to tooltip, Added new Scenario for Tooltip if it is Draged&Droped on the WF
* N8N-2586 Refactor computed property for draged nodes
* N8N-2586 Fixed Conflicts
* N8N-2586 Fixed Tooltip
* N8N-2586 Dont show tooltip on core trigger nodes that execute automatically
* N8N-2586 Fixed Webhook tooltip when adding/deleting canvas during WF execution
* N8N-2586 Updated Logic, Simplify the code
* N8N-2586 Simplify Code
* N8N-2586 Added check for nodetype
* update dragging to use local state
* N8N-2586 Added eventTriggerDescription to Interval Node
* add comment, use new getter
* update to always check
Co-authored-by: Mutasem <mutdmour@gmail.com>
2021-11-25 14:33:41 -08:00
|
|
|
canvasOffsetPosition() {
|
|
|
|
return this.$store.getters.getNodeViewOffsetPosition;
|
|
|
|
},
|
|
|
|
getTriggerNodeTooltip (): string | undefined {
|
|
|
|
if (this.nodeType !== null && this.nodeType.hasOwnProperty('eventTriggerDescription')) {
|
2022-01-07 13:02:21 -08:00
|
|
|
const nodeName = this.$locale.shortNodeType(this.nodeType.name);
|
|
|
|
const { eventTriggerDescription } = this.nodeType;
|
2022-04-14 23:22:58 -07:00
|
|
|
return this.$locale.nodeText().eventTriggerDescription(
|
|
|
|
nodeName,
|
|
|
|
eventTriggerDescription || '',
|
|
|
|
);
|
:sparkles: Improve Waiting Webhook call state in WF Canvas (#2430)
* N8N-2586 Improve Waiting Webhook call state in WF Canvas
* N8N-2586 Added watcher for showing Webhook's Node Tooltip on execution
* N8N-2586 Show helping tooltip for trigger node if wokrflow is running, it is a trigger node, if it is only one trigger node in WF
* N8N-2586 Rework/Move logic to computed property, Created getter for ActveTriggerNodesInWokrflow, Add style to trigger node's tooltip, remove comments
* N8N-2586 Added EventTriggerDescription prop in INodeTypeDescription Interface, Updated Logic for TriggerNode Tooltip based on the new prop
* N8N-2586 Add new use cases/watcher to show Trigger Nodes Tooltip / If has issues, if paused, if wokrlfow is running, Refactor Getter
* N8N-2586 Added z-index to tooltip, Added new Scenario for Tooltip if it is Draged&Droped on the WF
* N8N-2586 Refactor computed property for draged nodes
* N8N-2586 Fixed Conflicts
* N8N-2586 Fixed Tooltip
* N8N-2586 Dont show tooltip on core trigger nodes that execute automatically
* N8N-2586 Fixed Webhook tooltip when adding/deleting canvas during WF execution
* N8N-2586 Updated Logic, Simplify the code
* N8N-2586 Simplify Code
* N8N-2586 Added check for nodetype
* update dragging to use local state
* N8N-2586 Added eventTriggerDescription to Interval Node
* add comment, use new getter
* update to always check
Co-authored-by: Mutasem <mutdmour@gmail.com>
2021-11-25 14:33:41 -08:00
|
|
|
} else {
|
2022-01-07 13:02:21 -08:00
|
|
|
return this.$locale.baseText(
|
|
|
|
'node.waitingForYouToCreateAnEventIn',
|
|
|
|
{
|
|
|
|
interpolate: {
|
2022-06-20 12:39:24 -07:00
|
|
|
nodeType: this.nodeType ? getTriggerNodeServiceName(this.nodeType) : '',
|
2022-01-07 13:02:21 -08:00
|
|
|
},
|
|
|
|
},
|
|
|
|
);
|
:sparkles: Improve Waiting Webhook call state in WF Canvas (#2430)
* N8N-2586 Improve Waiting Webhook call state in WF Canvas
* N8N-2586 Added watcher for showing Webhook's Node Tooltip on execution
* N8N-2586 Show helping tooltip for trigger node if wokrflow is running, it is a trigger node, if it is only one trigger node in WF
* N8N-2586 Rework/Move logic to computed property, Created getter for ActveTriggerNodesInWokrflow, Add style to trigger node's tooltip, remove comments
* N8N-2586 Added EventTriggerDescription prop in INodeTypeDescription Interface, Updated Logic for TriggerNode Tooltip based on the new prop
* N8N-2586 Add new use cases/watcher to show Trigger Nodes Tooltip / If has issues, if paused, if wokrlfow is running, Refactor Getter
* N8N-2586 Added z-index to tooltip, Added new Scenario for Tooltip if it is Draged&Droped on the WF
* N8N-2586 Refactor computed property for draged nodes
* N8N-2586 Fixed Conflicts
* N8N-2586 Fixed Tooltip
* N8N-2586 Dont show tooltip on core trigger nodes that execute automatically
* N8N-2586 Fixed Webhook tooltip when adding/deleting canvas during WF execution
* N8N-2586 Updated Logic, Simplify the code
* N8N-2586 Simplify Code
* N8N-2586 Added check for nodetype
* update dragging to use local state
* N8N-2586 Added eventTriggerDescription to Interval Node
* add comment, use new getter
* update to always check
Co-authored-by: Mutasem <mutdmour@gmail.com>
2021-11-25 14:33:41 -08:00
|
|
|
}
|
|
|
|
},
|
2021-12-10 05:48:56 -08:00
|
|
|
isPollingTypeNode (): boolean {
|
|
|
|
return !!(this.nodeType && this.nodeType.polling);
|
|
|
|
},
|
2019-06-23 03:35:23 -07:00
|
|
|
isExecuting (): boolean {
|
|
|
|
return this.$store.getters.executingNode === this.data.name;
|
|
|
|
},
|
:sparkles: Improve Waiting Webhook call state in WF Canvas (#2430)
* N8N-2586 Improve Waiting Webhook call state in WF Canvas
* N8N-2586 Added watcher for showing Webhook's Node Tooltip on execution
* N8N-2586 Show helping tooltip for trigger node if wokrflow is running, it is a trigger node, if it is only one trigger node in WF
* N8N-2586 Rework/Move logic to computed property, Created getter for ActveTriggerNodesInWokrflow, Add style to trigger node's tooltip, remove comments
* N8N-2586 Added EventTriggerDescription prop in INodeTypeDescription Interface, Updated Logic for TriggerNode Tooltip based on the new prop
* N8N-2586 Add new use cases/watcher to show Trigger Nodes Tooltip / If has issues, if paused, if wokrlfow is running, Refactor Getter
* N8N-2586 Added z-index to tooltip, Added new Scenario for Tooltip if it is Draged&Droped on the WF
* N8N-2586 Refactor computed property for draged nodes
* N8N-2586 Fixed Conflicts
* N8N-2586 Fixed Tooltip
* N8N-2586 Dont show tooltip on core trigger nodes that execute automatically
* N8N-2586 Fixed Webhook tooltip when adding/deleting canvas during WF execution
* N8N-2586 Updated Logic, Simplify the code
* N8N-2586 Simplify Code
* N8N-2586 Added check for nodetype
* update dragging to use local state
* N8N-2586 Added eventTriggerDescription to Interval Node
* add comment, use new getter
* update to always check
Co-authored-by: Mutasem <mutdmour@gmail.com>
2021-11-25 14:33:41 -08:00
|
|
|
isSingleActiveTriggerNode (): boolean {
|
|
|
|
const nodes = this.$store.getters.workflowTriggerNodes.filter((node: INodeUi) => {
|
2022-08-01 13:43:50 -07:00
|
|
|
const nodeType = this.$store.getters['nodeTypes/getNodeType'](node.type, node.typeVersion) as INodeTypeDescription | null;
|
:sparkles: Improve Waiting Webhook call state in WF Canvas (#2430)
* N8N-2586 Improve Waiting Webhook call state in WF Canvas
* N8N-2586 Added watcher for showing Webhook's Node Tooltip on execution
* N8N-2586 Show helping tooltip for trigger node if wokrflow is running, it is a trigger node, if it is only one trigger node in WF
* N8N-2586 Rework/Move logic to computed property, Created getter for ActveTriggerNodesInWokrflow, Add style to trigger node's tooltip, remove comments
* N8N-2586 Added EventTriggerDescription prop in INodeTypeDescription Interface, Updated Logic for TriggerNode Tooltip based on the new prop
* N8N-2586 Add new use cases/watcher to show Trigger Nodes Tooltip / If has issues, if paused, if wokrlfow is running, Refactor Getter
* N8N-2586 Added z-index to tooltip, Added new Scenario for Tooltip if it is Draged&Droped on the WF
* N8N-2586 Refactor computed property for draged nodes
* N8N-2586 Fixed Conflicts
* N8N-2586 Fixed Tooltip
* N8N-2586 Dont show tooltip on core trigger nodes that execute automatically
* N8N-2586 Fixed Webhook tooltip when adding/deleting canvas during WF execution
* N8N-2586 Updated Logic, Simplify the code
* N8N-2586 Simplify Code
* N8N-2586 Added check for nodetype
* update dragging to use local state
* N8N-2586 Added eventTriggerDescription to Interval Node
* add comment, use new getter
* update to always check
Co-authored-by: Mutasem <mutdmour@gmail.com>
2021-11-25 14:33:41 -08:00
|
|
|
return nodeType && nodeType.eventTriggerDescription !== '' && !node.disabled;
|
|
|
|
});
|
|
|
|
|
|
|
|
return nodes.length === 1;
|
|
|
|
},
|
|
|
|
isTriggerNode (): boolean {
|
|
|
|
return !!(this.nodeType && this.nodeType.group.includes('trigger'));
|
|
|
|
},
|
|
|
|
isTriggerNodeTooltipEmpty () : boolean {
|
|
|
|
return this.nodeType !== null ? this.nodeType.eventTriggerDescription === '' : false;
|
|
|
|
},
|
|
|
|
isNodeDisabled (): boolean | undefined {
|
|
|
|
return this.node && this.node.disabled;
|
|
|
|
},
|
2019-06-23 03:35:23 -07:00
|
|
|
nodeType (): INodeTypeDescription | null {
|
2022-08-01 13:43:50 -07:00
|
|
|
return this.data && this.$store.getters['nodeTypes/getNodeType'](this.data.type, this.data.typeVersion);
|
:sparkles: Improve Waiting Webhook call state in WF Canvas (#2430)
* N8N-2586 Improve Waiting Webhook call state in WF Canvas
* N8N-2586 Added watcher for showing Webhook's Node Tooltip on execution
* N8N-2586 Show helping tooltip for trigger node if wokrflow is running, it is a trigger node, if it is only one trigger node in WF
* N8N-2586 Rework/Move logic to computed property, Created getter for ActveTriggerNodesInWokrflow, Add style to trigger node's tooltip, remove comments
* N8N-2586 Added EventTriggerDescription prop in INodeTypeDescription Interface, Updated Logic for TriggerNode Tooltip based on the new prop
* N8N-2586 Add new use cases/watcher to show Trigger Nodes Tooltip / If has issues, if paused, if wokrlfow is running, Refactor Getter
* N8N-2586 Added z-index to tooltip, Added new Scenario for Tooltip if it is Draged&Droped on the WF
* N8N-2586 Refactor computed property for draged nodes
* N8N-2586 Fixed Conflicts
* N8N-2586 Fixed Tooltip
* N8N-2586 Dont show tooltip on core trigger nodes that execute automatically
* N8N-2586 Fixed Webhook tooltip when adding/deleting canvas during WF execution
* N8N-2586 Updated Logic, Simplify the code
* N8N-2586 Simplify Code
* N8N-2586 Added check for nodetype
* update dragging to use local state
* N8N-2586 Added eventTriggerDescription to Interval Node
* add comment, use new getter
* update to always check
Co-authored-by: Mutasem <mutdmour@gmail.com>
2021-11-25 14:33:41 -08:00
|
|
|
},
|
|
|
|
node (): INodeUi | undefined { // same as this.data but reactive..
|
|
|
|
return this.$store.getters.nodesByName[this.name] as INodeUi | undefined;
|
2019-06-23 03:35:23 -07:00
|
|
|
},
|
2021-11-19 01:17:13 -08:00
|
|
|
nodeClass (): object {
|
|
|
|
return {
|
|
|
|
'node-box': true,
|
|
|
|
disabled: this.data.disabled,
|
|
|
|
executing: this.isExecuting,
|
|
|
|
};
|
2019-06-23 03:35:23 -07:00
|
|
|
},
|
2022-09-05 07:36:22 -07:00
|
|
|
nodeIssues (): string[] {
|
2019-06-23 03:35:23 -07:00
|
|
|
if (this.data.issues === undefined) {
|
2022-09-05 07:36:22 -07:00
|
|
|
return [];
|
2019-06-23 03:35:23 -07:00
|
|
|
}
|
|
|
|
|
2022-09-05 07:36:22 -07:00
|
|
|
return NodeHelpers.nodeIssuesToString(this.data.issues, this.data);
|
2019-06-23 03:35:23 -07:00
|
|
|
},
|
|
|
|
nodeDisabledIcon (): string {
|
|
|
|
if (this.data.disabled === false) {
|
|
|
|
return 'pause';
|
|
|
|
} else {
|
|
|
|
return 'play';
|
|
|
|
}
|
|
|
|
},
|
2021-11-19 01:17:13 -08:00
|
|
|
position (): XYPosition {
|
:sparkles: Improve Waiting Webhook call state in WF Canvas (#2430)
* N8N-2586 Improve Waiting Webhook call state in WF Canvas
* N8N-2586 Added watcher for showing Webhook's Node Tooltip on execution
* N8N-2586 Show helping tooltip for trigger node if wokrflow is running, it is a trigger node, if it is only one trigger node in WF
* N8N-2586 Rework/Move logic to computed property, Created getter for ActveTriggerNodesInWokrflow, Add style to trigger node's tooltip, remove comments
* N8N-2586 Added EventTriggerDescription prop in INodeTypeDescription Interface, Updated Logic for TriggerNode Tooltip based on the new prop
* N8N-2586 Add new use cases/watcher to show Trigger Nodes Tooltip / If has issues, if paused, if wokrlfow is running, Refactor Getter
* N8N-2586 Added z-index to tooltip, Added new Scenario for Tooltip if it is Draged&Droped on the WF
* N8N-2586 Refactor computed property for draged nodes
* N8N-2586 Fixed Conflicts
* N8N-2586 Fixed Tooltip
* N8N-2586 Dont show tooltip on core trigger nodes that execute automatically
* N8N-2586 Fixed Webhook tooltip when adding/deleting canvas during WF execution
* N8N-2586 Updated Logic, Simplify the code
* N8N-2586 Simplify Code
* N8N-2586 Added check for nodetype
* update dragging to use local state
* N8N-2586 Added eventTriggerDescription to Interval Node
* add comment, use new getter
* update to always check
Co-authored-by: Mutasem <mutdmour@gmail.com>
2021-11-25 14:33:41 -08:00
|
|
|
return this.node ? this.node.position : [0, 0];
|
2021-11-19 01:17:13 -08:00
|
|
|
},
|
|
|
|
showDisabledLinethrough(): boolean {
|
|
|
|
return !!(this.data.disabled && this.nodeType && this.nodeType.inputs.length === 1 && this.nodeType.outputs.length === 1);
|
|
|
|
},
|
|
|
|
nodePosition (): object {
|
|
|
|
const returnStyles: {
|
|
|
|
[key: string]: string;
|
|
|
|
} = {
|
|
|
|
left: this.position[0] + 'px',
|
|
|
|
top: this.position[1] + 'px',
|
|
|
|
};
|
|
|
|
|
|
|
|
return returnStyles;
|
|
|
|
},
|
2021-11-20 06:58:21 -08:00
|
|
|
shortNodeType (): string {
|
2021-12-15 04:16:53 -08:00
|
|
|
return this.$locale.shortNodeType(this.data.type);
|
2021-11-19 01:17:13 -08:00
|
|
|
},
|
2021-11-29 00:34:59 -08:00
|
|
|
nodeTitle (): string {
|
2021-12-02 08:51:50 -08:00
|
|
|
if (this.data.name === 'Start') {
|
2021-12-15 04:16:53 -08:00
|
|
|
return this.$locale.headerText({
|
2021-12-02 08:51:50 -08:00
|
|
|
key: `headers.start.displayName`,
|
|
|
|
fallback: 'Start',
|
|
|
|
});
|
|
|
|
}
|
2021-11-29 00:34:59 -08:00
|
|
|
|
2021-12-02 08:51:50 -08:00
|
|
|
return this.data.name;
|
2021-11-29 00:34:59 -08:00
|
|
|
},
|
2021-08-21 05:11:32 -07:00
|
|
|
waiting (): string | undefined {
|
|
|
|
const workflowExecution = this.$store.getters.getWorkflowExecution;
|
|
|
|
|
|
|
|
if (workflowExecution && workflowExecution.waitTill) {
|
|
|
|
const lastNodeExecuted = get(workflowExecution, 'data.resultData.lastNodeExecuted');
|
|
|
|
if (this.name === lastNodeExecuted) {
|
|
|
|
const waitDate = new Date(workflowExecution.waitTill);
|
|
|
|
if (waitDate.toISOString() === WAIT_TIME_UNLIMITED) {
|
2021-12-15 04:16:53 -08:00
|
|
|
return this.$locale.baseText('node.theNodeIsWaitingIndefinitelyForAnIncomingWebhookCall');
|
2021-08-21 05:11:32 -07:00
|
|
|
}
|
2021-12-15 04:16:53 -08:00
|
|
|
return this.$locale.baseText(
|
2021-11-20 06:58:21 -08:00
|
|
|
'node.nodeIsWaitingTill',
|
|
|
|
{
|
|
|
|
interpolate: {
|
|
|
|
date: waitDate.toLocaleDateString(),
|
|
|
|
time: waitDate.toLocaleTimeString(),
|
|
|
|
},
|
|
|
|
},
|
|
|
|
);
|
2021-08-21 05:11:32 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
return;
|
|
|
|
},
|
2019-06-23 03:35:23 -07:00
|
|
|
workflowRunning (): boolean {
|
|
|
|
return this.$store.getters.isActionActive('workflowRunning');
|
|
|
|
},
|
2021-11-19 01:17:13 -08:00
|
|
|
nodeStyle (): object {
|
|
|
|
let borderColor = getStyleTokenValue('--color-foreground-xdark');
|
|
|
|
|
|
|
|
if (this.data.disabled) {
|
|
|
|
borderColor = getStyleTokenValue('--color-foreground-base');
|
|
|
|
}
|
|
|
|
else if (!this.isExecuting) {
|
|
|
|
if (this.hasIssues) {
|
|
|
|
borderColor = getStyleTokenValue('--color-danger');
|
2022-07-20 08:50:39 -07:00
|
|
|
} else if (this.waiting || this.hasPinData) {
|
2021-11-19 01:17:13 -08:00
|
|
|
borderColor = getStyleTokenValue('--color-secondary');
|
2022-07-20 08:50:39 -07:00
|
|
|
} else if (this.workflowDataItems) {
|
2021-11-19 01:17:13 -08:00
|
|
|
borderColor = getStyleTokenValue('--color-success');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
const returnStyles: {
|
|
|
|
[key: string]: string;
|
|
|
|
} = {
|
|
|
|
'border-color': borderColor,
|
|
|
|
};
|
|
|
|
|
|
|
|
return returnStyles;
|
|
|
|
},
|
|
|
|
isSelected (): boolean {
|
|
|
|
return this.$store.getters.getSelectedNodes.find((node: INodeUi) => node.name === this.data.name);
|
|
|
|
},
|
|
|
|
shiftOutputCount (): boolean {
|
|
|
|
return !!(this.nodeType && this.nodeType.outputs.length > 2);
|
|
|
|
},
|
:sparkles: Improve Waiting Webhook call state in WF Canvas (#2430)
* N8N-2586 Improve Waiting Webhook call state in WF Canvas
* N8N-2586 Added watcher for showing Webhook's Node Tooltip on execution
* N8N-2586 Show helping tooltip for trigger node if wokrflow is running, it is a trigger node, if it is only one trigger node in WF
* N8N-2586 Rework/Move logic to computed property, Created getter for ActveTriggerNodesInWokrflow, Add style to trigger node's tooltip, remove comments
* N8N-2586 Added EventTriggerDescription prop in INodeTypeDescription Interface, Updated Logic for TriggerNode Tooltip based on the new prop
* N8N-2586 Add new use cases/watcher to show Trigger Nodes Tooltip / If has issues, if paused, if wokrlfow is running, Refactor Getter
* N8N-2586 Added z-index to tooltip, Added new Scenario for Tooltip if it is Draged&Droped on the WF
* N8N-2586 Refactor computed property for draged nodes
* N8N-2586 Fixed Conflicts
* N8N-2586 Fixed Tooltip
* N8N-2586 Dont show tooltip on core trigger nodes that execute automatically
* N8N-2586 Fixed Webhook tooltip when adding/deleting canvas during WF execution
* N8N-2586 Updated Logic, Simplify the code
* N8N-2586 Simplify Code
* N8N-2586 Added check for nodetype
* update dragging to use local state
* N8N-2586 Added eventTriggerDescription to Interval Node
* add comment, use new getter
* update to always check
Co-authored-by: Mutasem <mutdmour@gmail.com>
2021-11-25 14:33:41 -08:00
|
|
|
shouldShowTriggerTooltip () : boolean {
|
2021-12-10 05:48:56 -08:00
|
|
|
return !!this.node &&
|
|
|
|
this.isTriggerNode &&
|
|
|
|
!this.isPollingTypeNode &&
|
|
|
|
!this.isNodeDisabled &&
|
|
|
|
this.workflowRunning &&
|
2022-07-20 08:50:39 -07:00
|
|
|
this.workflowDataItems === 0 &&
|
2021-12-10 05:48:56 -08:00
|
|
|
this.isSingleActiveTriggerNode &&
|
|
|
|
!this.isTriggerNodeTooltipEmpty &&
|
|
|
|
!this.hasIssues &&
|
|
|
|
!this.dragging;
|
:sparkles: Improve Waiting Webhook call state in WF Canvas (#2430)
* N8N-2586 Improve Waiting Webhook call state in WF Canvas
* N8N-2586 Added watcher for showing Webhook's Node Tooltip on execution
* N8N-2586 Show helping tooltip for trigger node if wokrflow is running, it is a trigger node, if it is only one trigger node in WF
* N8N-2586 Rework/Move logic to computed property, Created getter for ActveTriggerNodesInWokrflow, Add style to trigger node's tooltip, remove comments
* N8N-2586 Added EventTriggerDescription prop in INodeTypeDescription Interface, Updated Logic for TriggerNode Tooltip based on the new prop
* N8N-2586 Add new use cases/watcher to show Trigger Nodes Tooltip / If has issues, if paused, if wokrlfow is running, Refactor Getter
* N8N-2586 Added z-index to tooltip, Added new Scenario for Tooltip if it is Draged&Droped on the WF
* N8N-2586 Refactor computed property for draged nodes
* N8N-2586 Fixed Conflicts
* N8N-2586 Fixed Tooltip
* N8N-2586 Dont show tooltip on core trigger nodes that execute automatically
* N8N-2586 Fixed Webhook tooltip when adding/deleting canvas during WF execution
* N8N-2586 Updated Logic, Simplify the code
* N8N-2586 Simplify Code
* N8N-2586 Added check for nodetype
* update dragging to use local state
* N8N-2586 Added eventTriggerDescription to Interval Node
* add comment, use new getter
* update to always check
Co-authored-by: Mutasem <mutdmour@gmail.com>
2021-11-25 14:33:41 -08:00
|
|
|
},
|
|
|
|
},
|
2021-08-07 00:35:59 -07:00
|
|
|
watch: {
|
|
|
|
isActive(newValue, oldValue) {
|
|
|
|
if (!newValue && oldValue) {
|
|
|
|
this.setSubtitle();
|
|
|
|
}
|
2019-07-12 05:14:36 -07:00
|
|
|
},
|
:sparkles: Improve Waiting Webhook call state in WF Canvas (#2430)
* N8N-2586 Improve Waiting Webhook call state in WF Canvas
* N8N-2586 Added watcher for showing Webhook's Node Tooltip on execution
* N8N-2586 Show helping tooltip for trigger node if wokrflow is running, it is a trigger node, if it is only one trigger node in WF
* N8N-2586 Rework/Move logic to computed property, Created getter for ActveTriggerNodesInWokrflow, Add style to trigger node's tooltip, remove comments
* N8N-2586 Added EventTriggerDescription prop in INodeTypeDescription Interface, Updated Logic for TriggerNode Tooltip based on the new prop
* N8N-2586 Add new use cases/watcher to show Trigger Nodes Tooltip / If has issues, if paused, if wokrlfow is running, Refactor Getter
* N8N-2586 Added z-index to tooltip, Added new Scenario for Tooltip if it is Draged&Droped on the WF
* N8N-2586 Refactor computed property for draged nodes
* N8N-2586 Fixed Conflicts
* N8N-2586 Fixed Tooltip
* N8N-2586 Dont show tooltip on core trigger nodes that execute automatically
* N8N-2586 Fixed Webhook tooltip when adding/deleting canvas during WF execution
* N8N-2586 Updated Logic, Simplify the code
* N8N-2586 Simplify Code
* N8N-2586 Added check for nodetype
* update dragging to use local state
* N8N-2586 Added eventTriggerDescription to Interval Node
* add comment, use new getter
* update to always check
Co-authored-by: Mutasem <mutdmour@gmail.com>
2021-11-25 14:33:41 -08:00
|
|
|
canvasOffsetPosition() {
|
|
|
|
if (this.showTriggerNodeTooltip) {
|
|
|
|
this.showTriggerNodeTooltip = false;
|
|
|
|
setTimeout(() => {
|
|
|
|
this.showTriggerNodeTooltip = this.shouldShowTriggerTooltip;
|
|
|
|
}, 200);
|
|
|
|
}
|
2022-07-20 08:50:39 -07:00
|
|
|
|
|
|
|
if (this.pinDataDiscoveryTooltipVisible) {
|
|
|
|
this.pinDataDiscoveryTooltipVisible = false;
|
|
|
|
setTimeout(() => {
|
|
|
|
this.pinDataDiscoveryTooltipVisible = true;
|
|
|
|
}, 200);
|
|
|
|
}
|
:sparkles: Improve Waiting Webhook call state in WF Canvas (#2430)
* N8N-2586 Improve Waiting Webhook call state in WF Canvas
* N8N-2586 Added watcher for showing Webhook's Node Tooltip on execution
* N8N-2586 Show helping tooltip for trigger node if wokrflow is running, it is a trigger node, if it is only one trigger node in WF
* N8N-2586 Rework/Move logic to computed property, Created getter for ActveTriggerNodesInWokrflow, Add style to trigger node's tooltip, remove comments
* N8N-2586 Added EventTriggerDescription prop in INodeTypeDescription Interface, Updated Logic for TriggerNode Tooltip based on the new prop
* N8N-2586 Add new use cases/watcher to show Trigger Nodes Tooltip / If has issues, if paused, if wokrlfow is running, Refactor Getter
* N8N-2586 Added z-index to tooltip, Added new Scenario for Tooltip if it is Draged&Droped on the WF
* N8N-2586 Refactor computed property for draged nodes
* N8N-2586 Fixed Conflicts
* N8N-2586 Fixed Tooltip
* N8N-2586 Dont show tooltip on core trigger nodes that execute automatically
* N8N-2586 Fixed Webhook tooltip when adding/deleting canvas during WF execution
* N8N-2586 Updated Logic, Simplify the code
* N8N-2586 Simplify Code
* N8N-2586 Added check for nodetype
* update dragging to use local state
* N8N-2586 Added eventTriggerDescription to Interval Node
* add comment, use new getter
* update to always check
Co-authored-by: Mutasem <mutdmour@gmail.com>
2021-11-25 14:33:41 -08:00
|
|
|
},
|
|
|
|
shouldShowTriggerTooltip(shouldShowTriggerTooltip) {
|
|
|
|
if (shouldShowTriggerTooltip) {
|
|
|
|
setTimeout(() => {
|
|
|
|
this.showTriggerNodeTooltip = this.shouldShowTriggerTooltip;
|
|
|
|
}, 2500);
|
|
|
|
} else {
|
|
|
|
this.showTriggerNodeTooltip = false;
|
|
|
|
}
|
|
|
|
},
|
2021-11-19 01:17:13 -08:00
|
|
|
nodeRunData(newValue) {
|
|
|
|
this.$emit('run', {name: this.data.name, data: newValue, waiting: !!this.waiting});
|
|
|
|
},
|
2019-06-23 03:35:23 -07:00
|
|
|
},
|
2022-07-20 08:50:39 -07:00
|
|
|
created() {
|
|
|
|
const hasSeenPinDataTooltip = localStorage.getItem(LOCAL_STORAGE_PIN_DATA_DISCOVERY_CANVAS_FLAG);
|
|
|
|
if (!hasSeenPinDataTooltip) {
|
|
|
|
this.unwatchWorkflowDataItems = this.$watch('workflowDataItems', (dataItemsCount: number) => {
|
|
|
|
this.showPinDataDiscoveryTooltip(dataItemsCount);
|
|
|
|
});
|
|
|
|
}
|
|
|
|
},
|
2021-08-07 00:35:59 -07:00
|
|
|
mounted() {
|
|
|
|
this.setSubtitle();
|
2021-11-19 01:17:13 -08:00
|
|
|
setTimeout(() => {
|
2022-05-23 08:56:15 -07:00
|
|
|
this.$emit('run', {name: this.data && this.data.name, data: this.nodeRunData, waiting: !!this.waiting});
|
2021-11-19 01:17:13 -08:00
|
|
|
}, 0);
|
2021-08-07 00:35:59 -07:00
|
|
|
},
|
2019-06-23 03:35:23 -07:00
|
|
|
data () {
|
|
|
|
return {
|
2020-10-24 11:01:13 -07:00
|
|
|
isTouchActive: false,
|
2021-08-07 00:35:59 -07:00
|
|
|
nodeSubtitle: '',
|
:sparkles: Improve Waiting Webhook call state in WF Canvas (#2430)
* N8N-2586 Improve Waiting Webhook call state in WF Canvas
* N8N-2586 Added watcher for showing Webhook's Node Tooltip on execution
* N8N-2586 Show helping tooltip for trigger node if wokrflow is running, it is a trigger node, if it is only one trigger node in WF
* N8N-2586 Rework/Move logic to computed property, Created getter for ActveTriggerNodesInWokrflow, Add style to trigger node's tooltip, remove comments
* N8N-2586 Added EventTriggerDescription prop in INodeTypeDescription Interface, Updated Logic for TriggerNode Tooltip based on the new prop
* N8N-2586 Add new use cases/watcher to show Trigger Nodes Tooltip / If has issues, if paused, if wokrlfow is running, Refactor Getter
* N8N-2586 Added z-index to tooltip, Added new Scenario for Tooltip if it is Draged&Droped on the WF
* N8N-2586 Refactor computed property for draged nodes
* N8N-2586 Fixed Conflicts
* N8N-2586 Fixed Tooltip
* N8N-2586 Dont show tooltip on core trigger nodes that execute automatically
* N8N-2586 Fixed Webhook tooltip when adding/deleting canvas during WF execution
* N8N-2586 Updated Logic, Simplify the code
* N8N-2586 Simplify Code
* N8N-2586 Added check for nodetype
* update dragging to use local state
* N8N-2586 Added eventTriggerDescription to Interval Node
* add comment, use new getter
* update to always check
Co-authored-by: Mutasem <mutdmour@gmail.com>
2021-11-25 14:33:41 -08:00
|
|
|
showTriggerNodeTooltip: false,
|
2022-07-20 08:50:39 -07:00
|
|
|
pinDataDiscoveryTooltipVisible: false,
|
:sparkles: Improve Waiting Webhook call state in WF Canvas (#2430)
* N8N-2586 Improve Waiting Webhook call state in WF Canvas
* N8N-2586 Added watcher for showing Webhook's Node Tooltip on execution
* N8N-2586 Show helping tooltip for trigger node if wokrflow is running, it is a trigger node, if it is only one trigger node in WF
* N8N-2586 Rework/Move logic to computed property, Created getter for ActveTriggerNodesInWokrflow, Add style to trigger node's tooltip, remove comments
* N8N-2586 Added EventTriggerDescription prop in INodeTypeDescription Interface, Updated Logic for TriggerNode Tooltip based on the new prop
* N8N-2586 Add new use cases/watcher to show Trigger Nodes Tooltip / If has issues, if paused, if wokrlfow is running, Refactor Getter
* N8N-2586 Added z-index to tooltip, Added new Scenario for Tooltip if it is Draged&Droped on the WF
* N8N-2586 Refactor computed property for draged nodes
* N8N-2586 Fixed Conflicts
* N8N-2586 Fixed Tooltip
* N8N-2586 Dont show tooltip on core trigger nodes that execute automatically
* N8N-2586 Fixed Webhook tooltip when adding/deleting canvas during WF execution
* N8N-2586 Updated Logic, Simplify the code
* N8N-2586 Simplify Code
* N8N-2586 Added check for nodetype
* update dragging to use local state
* N8N-2586 Added eventTriggerDescription to Interval Node
* add comment, use new getter
* update to always check
Co-authored-by: Mutasem <mutdmour@gmail.com>
2021-11-25 14:33:41 -08:00
|
|
|
dragging: false,
|
2022-07-20 08:50:39 -07:00
|
|
|
unwatchWorkflowDataItems: () => {},
|
2019-06-23 03:35:23 -07:00
|
|
|
};
|
|
|
|
},
|
|
|
|
methods: {
|
2022-07-20 08:50:39 -07:00
|
|
|
showPinDataDiscoveryTooltip(dataItemsCount: number): void {
|
2022-10-13 01:38:41 -07:00
|
|
|
if (!this.isTriggerNode || this.isScheduledGroup || dataItemsCount === 0) return;
|
2022-07-20 08:50:39 -07:00
|
|
|
|
2022-10-13 01:38:41 -07:00
|
|
|
localStorage.setItem(LOCAL_STORAGE_PIN_DATA_DISCOVERY_CANVAS_FLAG, 'true');
|
2022-07-20 08:50:39 -07:00
|
|
|
|
2022-10-13 01:38:41 -07:00
|
|
|
this.pinDataDiscoveryTooltipVisible = true;
|
|
|
|
this.unwatchWorkflowDataItems();
|
2022-07-20 08:50:39 -07:00
|
|
|
},
|
2021-08-07 00:35:59 -07:00
|
|
|
setSubtitle() {
|
2022-08-12 07:06:57 -07:00
|
|
|
const nodeSubtitle = this.getNodeSubtitle(this.data, this.nodeType, this.getCurrentWorkflow()) || '';
|
2022-05-24 02:36:19 -07:00
|
|
|
|
|
|
|
this.nodeSubtitle = nodeSubtitle.includes(CUSTOM_API_CALL_KEY)
|
|
|
|
? ''
|
|
|
|
: nodeSubtitle;
|
2021-08-07 00:35:59 -07:00
|
|
|
},
|
2019-06-23 03:35:23 -07:00
|
|
|
disableNode () {
|
2020-02-09 23:18:44 -08:00
|
|
|
this.disableNodes([this.data]);
|
2022-01-07 08:14:59 -08:00
|
|
|
this.$telemetry.track('User clicked node hover button', { node_type: this.data.type, button_name: 'disable', workflow_id: this.$store.getters.workflowId });
|
2019-06-23 03:35:23 -07:00
|
|
|
},
|
|
|
|
executeNode () {
|
2021-05-05 17:46:33 -07:00
|
|
|
this.$emit('runWorkflow', this.data.name, 'Node.executeNode');
|
2022-01-07 08:14:59 -08:00
|
|
|
this.$telemetry.track('User clicked node hover button', { node_type: this.data.type, button_name: 'execute', workflow_id: this.$store.getters.workflowId });
|
2019-06-23 03:35:23 -07:00
|
|
|
},
|
|
|
|
deleteNode () {
|
2022-01-07 08:14:59 -08:00
|
|
|
this.$telemetry.track('User clicked node hover button', { node_type: this.data.type, button_name: 'delete', workflow_id: this.$store.getters.workflowId });
|
2021-10-18 20:57:49 -07:00
|
|
|
|
2019-06-23 03:35:23 -07:00
|
|
|
Vue.nextTick(() => {
|
|
|
|
// Wait a tick else vue causes problems because the data is gone
|
|
|
|
this.$emit('removeNode', this.data.name);
|
|
|
|
});
|
|
|
|
},
|
|
|
|
duplicateNode () {
|
2022-01-07 08:14:59 -08:00
|
|
|
this.$telemetry.track('User clicked node hover button', { node_type: this.data.type, button_name: 'duplicate', workflow_id: this.$store.getters.workflowId });
|
2019-06-23 03:35:23 -07:00
|
|
|
Vue.nextTick(() => {
|
|
|
|
// Wait a tick else vue causes problems because the data is gone
|
|
|
|
this.$emit('duplicateNode', this.data.name);
|
|
|
|
});
|
|
|
|
},
|
2021-11-29 00:34:59 -08:00
|
|
|
|
2019-06-23 03:35:23 -07:00
|
|
|
setNodeActive () {
|
|
|
|
this.$store.commit('setActiveNode', this.data.name);
|
2022-07-20 08:50:39 -07:00
|
|
|
this.pinDataDiscoveryTooltipVisible = false;
|
2019-06-23 03:35:23 -07:00
|
|
|
},
|
2020-10-24 11:01:13 -07:00
|
|
|
touchStart () {
|
|
|
|
if (this.isTouchDevice === true && this.isMacOs === false && this.isTouchActive === false) {
|
|
|
|
this.isTouchActive = true;
|
|
|
|
setTimeout(() => {
|
|
|
|
this.isTouchActive = false;
|
|
|
|
}, 2000);
|
|
|
|
}
|
|
|
|
},
|
2019-06-23 03:35:23 -07:00
|
|
|
},
|
|
|
|
});
|
|
|
|
|
|
|
|
</script>
|
|
|
|
|
2021-11-19 01:17:13 -08:00
|
|
|
<style lang="scss" scoped>
|
2019-06-23 03:35:23 -07:00
|
|
|
|
2019-07-25 12:57:27 -07:00
|
|
|
.node-wrapper {
|
2019-06-23 03:35:23 -07:00
|
|
|
position: absolute;
|
2019-07-25 09:50:45 -07:00
|
|
|
width: 100px;
|
|
|
|
height: 100px;
|
2019-06-23 03:35:23 -07:00
|
|
|
|
2019-07-25 09:50:45 -07:00
|
|
|
.node-description {
|
2019-06-23 03:35:23 -07:00
|
|
|
position: absolute;
|
2021-11-19 01:17:13 -08:00
|
|
|
top: 100px;
|
2019-07-25 09:50:45 -07:00
|
|
|
left: -50px;
|
2021-11-19 01:17:13 -08:00
|
|
|
line-height: 1.5;
|
2019-07-25 09:50:45 -07:00
|
|
|
text-align: center;
|
2019-07-25 12:57:27 -07:00
|
|
|
cursor: default;
|
2021-11-19 01:17:13 -08:00
|
|
|
padding: 8px;
|
|
|
|
width: 200px;
|
|
|
|
pointer-events: none; // prevent container from being draggable
|
2019-07-25 12:57:27 -07:00
|
|
|
|
2021-11-19 01:17:13 -08:00
|
|
|
.node-name > p { // must be paragraph tag to have two lines in safari
|
2019-07-25 12:57:27 -07:00
|
|
|
text-overflow: ellipsis;
|
2021-11-19 01:17:13 -08:00
|
|
|
display: -webkit-box;
|
|
|
|
-webkit-box-orient: vertical;
|
|
|
|
-webkit-line-clamp: 2;
|
|
|
|
overflow: hidden;
|
|
|
|
overflow-wrap: anywhere;
|
|
|
|
font-weight: var(--font-weight-bold);
|
|
|
|
line-height: var(--font-line-height-compact);
|
2019-07-25 12:57:27 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
.node-subtitle {
|
|
|
|
white-space: nowrap;
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
font-weight: 400;
|
2022-09-23 07:14:28 -07:00
|
|
|
color: $custom-font-light;
|
2019-07-25 12:57:27 -07:00
|
|
|
font-size: 0.8em;
|
|
|
|
}
|
2019-06-23 03:35:23 -07:00
|
|
|
}
|
|
|
|
|
2019-07-25 12:57:27 -07:00
|
|
|
.node-default {
|
2021-11-19 01:17:13 -08:00
|
|
|
position: absolute;
|
2019-07-25 09:50:45 -07:00
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
2019-07-25 12:57:27 -07:00
|
|
|
cursor: pointer;
|
2019-06-23 03:35:23 -07:00
|
|
|
|
2021-11-19 01:17:13 -08:00
|
|
|
.node-box {
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
border: 2px solid var(--color-foreground-xdark);
|
|
|
|
border-radius: var(--border-radius-large);
|
|
|
|
background-color: var(--color-background-xlight);
|
2019-07-25 12:57:27 -07:00
|
|
|
|
2021-11-19 01:17:13 -08:00
|
|
|
&.executing {
|
2022-07-26 03:45:55 -07:00
|
|
|
background-color: var(--color-primary-tint-3) !important;
|
2019-06-23 03:35:23 -07:00
|
|
|
|
2021-11-19 01:17:13 -08:00
|
|
|
.node-executing-info {
|
|
|
|
display: inline-block;
|
|
|
|
}
|
2019-07-25 12:57:27 -07:00
|
|
|
}
|
2019-06-23 03:35:23 -07:00
|
|
|
}
|
|
|
|
|
2020-10-24 11:01:13 -07:00
|
|
|
&.touch-active,
|
2019-07-25 12:57:27 -07:00
|
|
|
&:hover {
|
|
|
|
.node-execute {
|
|
|
|
display: initial;
|
|
|
|
}
|
2019-06-23 03:35:23 -07:00
|
|
|
|
2019-07-25 12:57:27 -07:00
|
|
|
.node-options {
|
|
|
|
display: initial;
|
|
|
|
}
|
|
|
|
}
|
2019-06-23 03:35:23 -07:00
|
|
|
|
2019-07-25 12:57:27 -07:00
|
|
|
.node-executing-info {
|
|
|
|
display: none;
|
|
|
|
position: absolute;
|
|
|
|
left: 0px;
|
|
|
|
top: 0px;
|
|
|
|
z-index: 12;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
font-size: 3.75em;
|
|
|
|
line-height: 1.65em;
|
|
|
|
text-align: center;
|
2022-07-26 03:45:55 -07:00
|
|
|
color: hsla(var(--color-primary-h), var(--color-primary-s), var(--color-primary-l), 0.7);
|
2019-07-25 12:57:27 -07:00
|
|
|
}
|
2019-06-23 03:35:23 -07:00
|
|
|
|
2019-07-25 12:57:27 -07:00
|
|
|
.node-icon {
|
|
|
|
position: absolute;
|
2021-11-19 01:17:13 -08:00
|
|
|
top: calc(50% - 20px);
|
|
|
|
left: calc(50% - 20px);
|
2019-07-25 12:57:27 -07:00
|
|
|
}
|
2019-06-23 03:35:23 -07:00
|
|
|
|
2019-07-25 12:57:27 -07:00
|
|
|
.node-info-icon {
|
|
|
|
position: absolute;
|
2021-11-19 01:17:13 -08:00
|
|
|
bottom: 6px;
|
|
|
|
right: 6px;
|
2019-06-23 03:35:23 -07:00
|
|
|
|
2021-11-19 01:17:13 -08:00
|
|
|
&.shift-icon {
|
|
|
|
right: 12px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.data-count {
|
2019-07-25 12:57:27 -07:00
|
|
|
font-weight: 600;
|
2021-11-19 01:17:13 -08:00
|
|
|
color: var(--color-success);
|
2019-06-23 03:35:23 -07:00
|
|
|
}
|
2021-08-21 05:11:32 -07:00
|
|
|
|
2021-11-19 01:17:13 -08:00
|
|
|
.node-issues {
|
|
|
|
color: var(--color-danger);
|
2021-08-21 05:11:32 -07:00
|
|
|
}
|
2019-07-25 09:50:45 -07:00
|
|
|
|
2021-11-19 01:17:13 -08:00
|
|
|
.items-count {
|
|
|
|
font-size: var(--font-size-s);
|
|
|
|
}
|
2019-07-25 12:57:27 -07:00
|
|
|
}
|
|
|
|
|
2022-07-20 08:50:39 -07:00
|
|
|
.node-pin-data-icon {
|
|
|
|
color: var(--color-secondary);
|
|
|
|
margin-right: 2px;
|
|
|
|
|
|
|
|
svg {
|
|
|
|
height: 0.85rem;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-08-21 05:11:32 -07:00
|
|
|
.waiting {
|
2021-11-19 01:17:13 -08:00
|
|
|
color: var(--color-secondary);
|
2021-08-21 05:11:32 -07:00
|
|
|
}
|
|
|
|
|
2019-07-25 12:57:27 -07:00
|
|
|
.node-options {
|
|
|
|
display: none;
|
|
|
|
position: absolute;
|
2019-07-25 22:49:00 -07:00
|
|
|
top: -25px;
|
2019-07-25 12:57:27 -07:00
|
|
|
left: -10px;
|
|
|
|
width: 120px;
|
2021-12-10 06:35:33 -08:00
|
|
|
height: 26px;
|
2019-07-25 12:57:27 -07:00
|
|
|
font-size: 0.9em;
|
|
|
|
text-align: left;
|
|
|
|
z-index: 10;
|
|
|
|
color: #aaa;
|
|
|
|
text-align: center;
|
|
|
|
|
|
|
|
.option {
|
2021-08-29 04:36:17 -07:00
|
|
|
width: 28px;
|
2019-07-25 12:57:27 -07:00
|
|
|
display: inline-block;
|
|
|
|
|
2020-02-15 17:29:08 -08:00
|
|
|
&.touch {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2019-07-25 12:57:27 -07:00
|
|
|
&:hover {
|
2022-09-23 07:14:28 -07:00
|
|
|
color: $color-primary;
|
2019-07-25 12:57:27 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
.execute-icon {
|
|
|
|
position: relative;
|
|
|
|
top: 2px;
|
|
|
|
font-size: 1.2em;
|
|
|
|
}
|
2019-06-23 03:35:23 -07:00
|
|
|
}
|
|
|
|
}
|
2019-07-25 22:49:00 -07:00
|
|
|
|
2020-02-15 17:29:08 -08:00
|
|
|
&.is-touch-device .node-options {
|
|
|
|
left: -25px;
|
|
|
|
width: 150px;
|
2020-02-09 00:06:01 -08:00
|
|
|
|
2020-02-15 17:29:08 -08:00
|
|
|
.option.touch {
|
|
|
|
display: initial;
|
2020-02-09 00:06:01 -08:00
|
|
|
}
|
|
|
|
}
|
2021-11-19 01:17:13 -08:00
|
|
|
}
|
|
|
|
}
|
2020-02-09 00:06:01 -08:00
|
|
|
|
2021-11-19 01:17:13 -08:00
|
|
|
.select-background {
|
|
|
|
display: block;
|
|
|
|
background-color: hsla(var(--color-foreground-base-h), var(--color-foreground-base-s), var(--color-foreground-base-l), 60%);
|
|
|
|
border-radius: var(--border-radius-xlarge);
|
|
|
|
overflow: hidden;
|
|
|
|
position: absolute;
|
|
|
|
left: -8px !important;
|
|
|
|
top: -8px !important;
|
|
|
|
height: 116px;
|
|
|
|
width: 116px !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
.disabled-linethrough {
|
|
|
|
border: 1px solid var(--color-foreground-dark);
|
|
|
|
position: absolute;
|
|
|
|
top: 49px;
|
|
|
|
left: -3px;
|
|
|
|
width: 111px;
|
|
|
|
pointer-events: none;
|
|
|
|
|
|
|
|
&.success {
|
|
|
|
border-color: var(--color-success-light);
|
2019-06-23 03:35:23 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
|
2021-11-19 01:17:13 -08:00
|
|
|
<style lang="scss">
|
2021-12-03 09:53:55 -08:00
|
|
|
.jtk-endpoint {
|
2021-11-19 01:17:13 -08:00
|
|
|
z-index: 2;
|
2019-06-23 03:35:23 -07:00
|
|
|
}
|
|
|
|
|
:sparkles: Improve Waiting Webhook call state in WF Canvas (#2430)
* N8N-2586 Improve Waiting Webhook call state in WF Canvas
* N8N-2586 Added watcher for showing Webhook's Node Tooltip on execution
* N8N-2586 Show helping tooltip for trigger node if wokrflow is running, it is a trigger node, if it is only one trigger node in WF
* N8N-2586 Rework/Move logic to computed property, Created getter for ActveTriggerNodesInWokrflow, Add style to trigger node's tooltip, remove comments
* N8N-2586 Added EventTriggerDescription prop in INodeTypeDescription Interface, Updated Logic for TriggerNode Tooltip based on the new prop
* N8N-2586 Add new use cases/watcher to show Trigger Nodes Tooltip / If has issues, if paused, if wokrlfow is running, Refactor Getter
* N8N-2586 Added z-index to tooltip, Added new Scenario for Tooltip if it is Draged&Droped on the WF
* N8N-2586 Refactor computed property for draged nodes
* N8N-2586 Fixed Conflicts
* N8N-2586 Fixed Tooltip
* N8N-2586 Dont show tooltip on core trigger nodes that execute automatically
* N8N-2586 Fixed Webhook tooltip when adding/deleting canvas during WF execution
* N8N-2586 Updated Logic, Simplify the code
* N8N-2586 Simplify Code
* N8N-2586 Added check for nodetype
* update dragging to use local state
* N8N-2586 Added eventTriggerDescription to Interval Node
* add comment, use new getter
* update to always check
Co-authored-by: Mutasem <mutdmour@gmail.com>
2021-11-25 14:33:41 -08:00
|
|
|
.node-trigger-tooltip {
|
|
|
|
&__wrapper {
|
|
|
|
top: -22px;
|
|
|
|
left: 50px;
|
|
|
|
position: relative;
|
|
|
|
|
|
|
|
&--item {
|
|
|
|
max-width: 160px;
|
|
|
|
position: fixed;
|
|
|
|
z-index: 0!important;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-11-19 01:17:13 -08:00
|
|
|
/** connector */
|
2019-06-23 03:35:23 -07:00
|
|
|
.jtk-connector {
|
2021-11-19 01:17:13 -08:00
|
|
|
z-index: 3;
|
2019-06-23 03:35:23 -07:00
|
|
|
}
|
2021-11-19 01:17:13 -08:00
|
|
|
|
|
|
|
.jtk-connector path {
|
|
|
|
transition: stroke .1s ease-in-out;
|
|
|
|
}
|
|
|
|
|
|
|
|
.jtk-connector.success {
|
|
|
|
z-index: 4;
|
|
|
|
}
|
|
|
|
|
|
|
|
.jtk-connector.jtk-hover {
|
|
|
|
z-index: 6;
|
|
|
|
}
|
|
|
|
|
2021-12-03 09:53:55 -08:00
|
|
|
.jtk-endpoint.plus-endpoint {
|
2021-11-19 01:17:13 -08:00
|
|
|
z-index: 6;
|
|
|
|
}
|
|
|
|
|
2021-12-03 09:53:55 -08:00
|
|
|
.jtk-endpoint.dot-output-endpoint {
|
2021-11-19 01:17:13 -08:00
|
|
|
z-index: 7;
|
|
|
|
}
|
|
|
|
|
2019-06-23 03:35:23 -07:00
|
|
|
.jtk-overlay {
|
2021-12-03 09:53:55 -08:00
|
|
|
z-index: 7;
|
|
|
|
}
|
|
|
|
|
|
|
|
.disabled-linethrough {
|
|
|
|
z-index: 8;
|
2019-06-23 03:35:23 -07:00
|
|
|
}
|
|
|
|
|
2021-11-19 01:17:13 -08:00
|
|
|
.jtk-connector.jtk-dragging {
|
|
|
|
z-index: 8;
|
2019-06-23 03:35:23 -07:00
|
|
|
}
|
|
|
|
|
2021-12-03 09:53:55 -08:00
|
|
|
.jtk-drag-active.dot-output-endpoint, .jtk-drag-active.rect-input-endpoint {
|
2021-11-19 01:17:13 -08:00
|
|
|
z-index: 9;
|
2019-06-23 03:35:23 -07:00
|
|
|
}
|
|
|
|
|
2021-11-19 01:17:13 -08:00
|
|
|
.connection-actions {
|
|
|
|
z-index: 10;
|
2019-06-23 03:35:23 -07:00
|
|
|
}
|
2021-11-19 01:17:13 -08:00
|
|
|
|
|
|
|
.node-options {
|
|
|
|
z-index: 10;
|
|
|
|
}
|
|
|
|
|
|
|
|
.drop-add-node-label {
|
|
|
|
z-index: 10;
|
|
|
|
}
|
|
|
|
|
2019-06-23 03:35:23 -07:00
|
|
|
</style>
|
2021-12-03 09:53:55 -08:00
|
|
|
|
|
|
|
<style lang="scss">
|
|
|
|
$--stalklength: 40px;
|
|
|
|
$--box-size-medium: 24px;
|
|
|
|
$--box-size-small: 18px;
|
|
|
|
|
|
|
|
.plus-endpoint {
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
|
|
.plus-stalk {
|
|
|
|
border-top: 2px solid var(--color-foreground-dark);
|
|
|
|
position: absolute;
|
|
|
|
width: $--stalklength;
|
|
|
|
height: 0;
|
|
|
|
right: 100%;
|
|
|
|
top: calc(50% - 1px);
|
|
|
|
pointer-events: none;
|
|
|
|
|
|
|
|
.connection-run-items-label {
|
|
|
|
position: relative;
|
|
|
|
width: 100%;
|
|
|
|
|
|
|
|
span {
|
|
|
|
display: none;
|
|
|
|
left: calc(50% + 4px);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.plus-container {
|
|
|
|
color: var(--color-foreground-xdark);
|
|
|
|
border: 2px solid var(--color-foreground-xdark);
|
|
|
|
background-color: var(--color-background-xlight);
|
|
|
|
border-radius: var(--border-radius-base);
|
|
|
|
height: $--box-size-medium;
|
|
|
|
width: $--box-size-medium;
|
|
|
|
|
|
|
|
display: inline-flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
font-size: var(--font-size-2xs);
|
|
|
|
position: absolute;
|
|
|
|
|
|
|
|
top: 0;
|
|
|
|
right: 0;
|
|
|
|
pointer-events: none;
|
|
|
|
|
|
|
|
&.small {
|
|
|
|
height: $--box-size-small;
|
|
|
|
width: $--box-size-small;
|
|
|
|
font-size: 8px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.fa-plus {
|
|
|
|
width: 1em;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.drop-hover-message {
|
|
|
|
font-weight: var(--font-weight-bold);
|
|
|
|
font-size: var(--font-size-2xs);
|
|
|
|
line-height: var(--font-line-height-regular);
|
|
|
|
color: var(--color-text-light);
|
|
|
|
|
|
|
|
position: absolute;
|
|
|
|
top: -6px;
|
|
|
|
left: calc(100% + 8px);
|
|
|
|
width: 200px;
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.hidden > * {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.success .plus-stalk {
|
|
|
|
border-color: var(--color-success-light);
|
|
|
|
|
|
|
|
span {
|
|
|
|
display: inline;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|