add empty run state

This commit is contained in:
Mutasem 2022-03-29 11:45:27 +02:00
parent dde78de85c
commit 85b42b287a
2 changed files with 17 additions and 2 deletions

View file

@ -113,8 +113,17 @@
/>
</div>
<div v-else-if="hasNodeRun && displayMode === 'table' && tableData && tableData.columns && tableData.columns.length === 0" :class="$style.center">
<n8n-text align="center" tag="div">{{ $locale.baseText('runData.entriesExistButThey') }}</n8n-text>
<div v-else-if="hasNodeRun && displayMode === 'table' && tableData && tableData.columns && tableData.columns.length === 0" :class="$style.dataDisplay">
<table :class="$style.table">
<tr>
<th :class="$style.emptyCell"></th>
</tr>
<tr>
<td>
<n8n-text>{{ $locale.baseText('node.output.emptyOutput') }}</n8n-text>
</td>
</tr>
</table>
</div>
<div v-else-if="hasNodeRun && displayMode === 'table' && tableData" :class="$style.dataDisplay">
@ -748,6 +757,10 @@ export default mixins(
border: var(--border-base);
}
}
.emptyCell {
height: 32px;
}
</style>
<style lang="scss">

View file

@ -1158,6 +1158,8 @@
"node.output.tooMuchData.showDataAnyway": "Show data anyway",
"node.output.items": "items",
"node.output.item": "items",
"node.output.emptyOutput": "This output item is empty.",
"node.output.emptyInput": "This input item is empty. {name} will still execute when it recieves an empty item.",
"openWorkflow.workflowImportError": "Could not import workflow",
"openWorkflow.workflowNotFoundError": "Could not find workflow",
"settings": "Settings",