mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-26 21:19:43 -08:00
add type
This commit is contained in:
parent
0d88d9d061
commit
f5f2df7291
|
@ -206,6 +206,7 @@ import {
|
||||||
IBinaryDisplayData,
|
IBinaryDisplayData,
|
||||||
IExecutionResponse,
|
IExecutionResponse,
|
||||||
INodeUi,
|
INodeUi,
|
||||||
|
ITab,
|
||||||
ITableData,
|
ITableData,
|
||||||
} from '@/Interface';
|
} from '@/Interface';
|
||||||
|
|
||||||
|
@ -405,11 +406,11 @@ export default mixins(
|
||||||
|
|
||||||
return this.getBinaryData(this.workflowRunData, this.node.name, this.runIndex, this.outputIndex);
|
return this.getBinaryData(this.workflowRunData, this.node.name, this.runIndex, this.outputIndex);
|
||||||
},
|
},
|
||||||
branches (): Array<{value: number, label: string }> {
|
branches (): ITab[] {
|
||||||
function capitalize(name: string) {
|
function capitalize(name: string) {
|
||||||
return name.charAt(0).toLocaleUpperCase() + name.slice(1);
|
return name.charAt(0).toLocaleUpperCase() + name.slice(1);
|
||||||
}
|
}
|
||||||
const branches: Array<{value: number, label: string }> = [];
|
const branches: ITab[] = [];
|
||||||
for (let i = 0; i <= this.maxOutputIndex; i++) {
|
for (let i = 0; i <= this.maxOutputIndex; i++) {
|
||||||
const itemsCount = this.getDataCount(this.runIndex, i);
|
const itemsCount = this.getDataCount(this.runIndex, i);
|
||||||
const items = this.$locale.baseText(itemsCount === 1 ? 'node.output.item': 'node.output.items');
|
const items = this.$locale.baseText(itemsCount === 1 ? 'node.output.item': 'node.output.items');
|
||||||
|
|
Loading…
Reference in a new issue