From aa3cbe53584ded5dc08f4ec3100acd0053c047da Mon Sep 17 00:00:00 2001 From: Michael Kret <88898367+michael-radency@users.noreply.github.com> Date: Sun, 30 Jan 2022 15:56:39 +0200 Subject: [PATCH] :zap: Add default polling interval (Poll trigger nodes) N8N-2874 (#2730) * :zap: added default polling interval to Poll trigger nodes * :zap: added default value to polling triger --- packages/editor-ui/src/components/FixedCollectionParameter.vue | 1 + packages/workflow/src/NodeHelpers.ts | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/editor-ui/src/components/FixedCollectionParameter.vue b/packages/editor-ui/src/components/FixedCollectionParameter.vue index 358070bed6..210aa54bbc 100644 --- a/packages/editor-ui/src/components/FixedCollectionParameter.vue +++ b/packages/editor-ui/src/components/FixedCollectionParameter.vue @@ -83,6 +83,7 @@ export default mixins(genericHelpers) selectedOption: undefined, }; }, + computed: { getPlaceholderText (): string { const placeholder = this.$locale.nodeText().placeholder(this.parameter, this.path); diff --git a/packages/workflow/src/NodeHelpers.ts b/packages/workflow/src/NodeHelpers.ts index e427909daf..f56fc5d943 100644 --- a/packages/workflow/src/NodeHelpers.ts +++ b/packages/workflow/src/NodeHelpers.ts @@ -56,7 +56,7 @@ export function getSpecialNodeParameters(nodeType: INodeType): INodeProperties[] multipleValues: true, multipleValueButtonText: 'Add Poll Time', }, - default: {}, + default: { item: [{ mode: 'everyMinute' }] }, description: 'Time at which polling should occur', placeholder: 'Add Poll Time', options: [ @@ -782,7 +782,6 @@ export function getNodeParameters( if (Object.keys(collectionValues).length !== 0 || returnDefaults) { // Set only if value got found - if (returnDefaults) { // Set also when it has the default value if (collectionValues === undefined) {