mirror of
https://github.com/n8n-io/n8n.git
synced 2025-01-12 13:27:31 -08:00
⚡ Add default polling interval (Poll trigger nodes) N8N-2874 (#2730)
* ⚡ added default polling interval to Poll trigger nodes * ⚡ added default value to polling triger
This commit is contained in:
parent
3cde6bd426
commit
aa3cbe5358
|
@ -83,6 +83,7 @@ export default mixins(genericHelpers)
|
||||||
selectedOption: undefined,
|
selectedOption: undefined,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|
||||||
computed: {
|
computed: {
|
||||||
getPlaceholderText (): string {
|
getPlaceholderText (): string {
|
||||||
const placeholder = this.$locale.nodeText().placeholder(this.parameter, this.path);
|
const placeholder = this.$locale.nodeText().placeholder(this.parameter, this.path);
|
||||||
|
|
|
@ -56,7 +56,7 @@ export function getSpecialNodeParameters(nodeType: INodeType): INodeProperties[]
|
||||||
multipleValues: true,
|
multipleValues: true,
|
||||||
multipleValueButtonText: 'Add Poll Time',
|
multipleValueButtonText: 'Add Poll Time',
|
||||||
},
|
},
|
||||||
default: {},
|
default: { item: [{ mode: 'everyMinute' }] },
|
||||||
description: 'Time at which polling should occur',
|
description: 'Time at which polling should occur',
|
||||||
placeholder: 'Add Poll Time',
|
placeholder: 'Add Poll Time',
|
||||||
options: [
|
options: [
|
||||||
|
@ -782,7 +782,6 @@ export function getNodeParameters(
|
||||||
|
|
||||||
if (Object.keys(collectionValues).length !== 0 || returnDefaults) {
|
if (Object.keys(collectionValues).length !== 0 || returnDefaults) {
|
||||||
// Set only if value got found
|
// Set only if value got found
|
||||||
|
|
||||||
if (returnDefaults) {
|
if (returnDefaults) {
|
||||||
// Set also when it has the default value
|
// Set also when it has the default value
|
||||||
if (collectionValues === undefined) {
|
if (collectionValues === undefined) {
|
||||||
|
|
Loading…
Reference in a new issue