mirror of
https://github.com/n8n-io/n8n.git
synced 2025-02-20 18:49:27 -08:00
update schedule nodes messages
This commit is contained in:
parent
8cb61bade5
commit
e08711dd23
|
@ -40,12 +40,15 @@ export default mixins(
|
||||||
isPollingTypeNode (): boolean {
|
isPollingTypeNode (): boolean {
|
||||||
return !!(this.nodeType && this.nodeType.polling);
|
return !!(this.nodeType && this.nodeType.polling);
|
||||||
},
|
},
|
||||||
|
isScheduleTrigger (): boolean {
|
||||||
|
return !!(this.nodeType && this.nodeType.group.includes('schedule'));
|
||||||
|
},
|
||||||
label(): string {
|
label(): string {
|
||||||
if (this.isPollingTypeNode) {
|
if (this.isPollingTypeNode) {
|
||||||
return this.$locale.baseText('ndv.execute.fetchEvent');
|
return this.$locale.baseText('ndv.execute.fetchEvent');
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.isTriggerNode) {
|
if (this.isTriggerNode && !this.isScheduleTrigger) {
|
||||||
return this.$locale.baseText('ndv.execute.listenForEvent');
|
return this.$locale.baseText('ndv.execute.listenForEvent');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -68,7 +68,7 @@
|
||||||
<n8n-text>{{ $locale.baseText('ndv.output.executing') }}</n8n-text>
|
<n8n-text>{{ $locale.baseText('ndv.output.executing') }}</n8n-text>
|
||||||
</div>
|
</div>
|
||||||
<n8n-text v-else-if="isPollingTypeNode">{{ $locale.baseText('ndv.output.pollEventNodeHint') }}</n8n-text>
|
<n8n-text v-else-if="isPollingTypeNode">{{ $locale.baseText('ndv.output.pollEventNodeHint') }}</n8n-text>
|
||||||
<n8n-text v-else-if="isTriggerNode">{{ $locale.baseText('ndv.output.triggerEventNodeHint') }}</n8n-text>
|
<n8n-text v-else-if="isTriggerNode && !isScheduleTrigger">{{ $locale.baseText('ndv.output.triggerEventNodeHint') }}</n8n-text>
|
||||||
<n8n-text v-else>{{ $locale.baseText('ndv.output.runNodeHint') }}</n8n-text>
|
<n8n-text v-else>{{ $locale.baseText('ndv.output.runNodeHint') }}</n8n-text>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -317,6 +317,9 @@ export default mixins(
|
||||||
isPollingTypeNode (): boolean {
|
isPollingTypeNode (): boolean {
|
||||||
return !!(this.nodeType && this.nodeType.polling);
|
return !!(this.nodeType && this.nodeType.polling);
|
||||||
},
|
},
|
||||||
|
isScheduleTrigger (): boolean {
|
||||||
|
return !!(this.nodeType && this.nodeType.group.includes('schedule'));
|
||||||
|
},
|
||||||
buttons(): Array<{label: string, value: string}> {
|
buttons(): Array<{label: string, value: string}> {
|
||||||
const defaults = [
|
const defaults = [
|
||||||
{ label: this.$locale.baseText('runData.table'), value: 'table'},
|
{ label: this.$locale.baseText('runData.table'), value: 'table'},
|
||||||
|
|
Loading…
Reference in a new issue