mirror of
https://github.com/n8n-io/n8n.git
synced 2025-02-21 02:56:40 -08:00
clean up a bit
This commit is contained in:
parent
e77270d9f3
commit
bc5445a478
|
@ -16,15 +16,6 @@
|
||||||
<font-awesome-icon icon="info-circle" :class="$style.infoIcon" />
|
<font-awesome-icon icon="info-circle" :class="$style.infoIcon" />
|
||||||
</n8n-tooltip>
|
</n8n-tooltip>
|
||||||
</div>
|
</div>
|
||||||
<!-- <div v-else class="title-text">
|
|
||||||
<n8n-text :bold="true">{{ $locale.baseText('runData.items') }}:</n8n-text>
|
|
||||||
<span class="opts">
|
|
||||||
<n8n-select size="mini" v-model="maxDisplayItems" @click.stop>
|
|
||||||
<n8n-option v-for="option in maxDisplayItemsOptions" :label="option" :value="option" :key="option" />
|
|
||||||
</n8n-select>
|
|
||||||
</span>/
|
|
||||||
<n8n-text :bold="true">{{ dataCount }}</n8n-text>
|
|
||||||
</div> -->
|
|
||||||
|
|
||||||
<div v-if="!hasRunError" @click.stop>
|
<div v-if="!hasRunError" @click.stop>
|
||||||
<n8n-radio-buttons
|
<n8n-radio-buttons
|
||||||
|
@ -375,7 +366,7 @@ export default mixins(
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
},
|
},
|
||||||
jsonData (): IDataObject[] {
|
inputData (): INodeExecutionData[] {
|
||||||
let inputData = this.getNodeInputData(this.node, this.runIndex, this.outputIndex);
|
let inputData = this.getNodeInputData(this.node, this.runIndex, this.outputIndex);
|
||||||
if (inputData.length === 0 || !Array.isArray(inputData)) {
|
if (inputData.length === 0 || !Array.isArray(inputData)) {
|
||||||
return [];
|
return [];
|
||||||
|
@ -385,19 +376,13 @@ export default mixins(
|
||||||
inputData = inputData.slice(0, this.maxDisplayItems);
|
inputData = inputData.slice(0, this.maxDisplayItems);
|
||||||
}
|
}
|
||||||
|
|
||||||
return this.convertToJson(inputData);
|
return inputData;
|
||||||
|
},
|
||||||
|
jsonData (): IDataObject[] {
|
||||||
|
return this.convertToJson(this.inputData);
|
||||||
},
|
},
|
||||||
tableData (): ITableData | undefined {
|
tableData (): ITableData | undefined {
|
||||||
let inputData = this.getNodeInputData(this.node, this.runIndex, this.outputIndex);
|
return this.convertToTable(this.inputData);
|
||||||
if (inputData.length === 0) {
|
|
||||||
return undefined;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (this.maxDisplayItems !== null) {
|
|
||||||
inputData = inputData.slice(0,this.maxDisplayItems);
|
|
||||||
}
|
|
||||||
|
|
||||||
return this.convertToTable(inputData);
|
|
||||||
},
|
},
|
||||||
binaryData (): IBinaryKeyData[] {
|
binaryData (): IBinaryKeyData[] {
|
||||||
if (this.node === null) {
|
if (this.node === null) {
|
||||||
|
|
Loading…
Reference in a new issue