mirror of
https://github.com/n8n-io/n8n.git
synced 2025-01-13 05:47:31 -08:00
⚡ Keep binary data visible on re-execution
This commit is contained in:
parent
17056122af
commit
aaae7964d6
|
@ -11,10 +11,10 @@
|
||||||
</el-button>
|
</el-button>
|
||||||
|
|
||||||
<div class="binary-data-window-wrapper">
|
<div class="binary-data-window-wrapper">
|
||||||
<div v-if="binaryData === null">
|
<div v-if="!binaryData">
|
||||||
Data to display did not get found
|
Data to display did not get found
|
||||||
</div>
|
</div>
|
||||||
<embed :src="'data:' + binaryData.mimeType + ';base64,' + binaryData.data" class="binary-data" :class="embedClass"/>
|
<embed v-else :src="'data:' + binaryData.mimeType + ';base64,' + binaryData.data" class="binary-data" :class="embedClass"/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -594,10 +594,6 @@ export default mixins(
|
||||||
// Data is reasonable small (< 200kb) so display it directly
|
// Data is reasonable small (< 200kb) so display it directly
|
||||||
this.showData = true;
|
this.showData = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.displayMode === 'Binary' && this.binaryData.length === 0) {
|
|
||||||
this.displayMode = 'Table';
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
|
@ -606,6 +602,12 @@ export default mixins(
|
||||||
this.outputIndex = 0;
|
this.outputIndex = 0;
|
||||||
this.maxDisplayItems = 25;
|
this.maxDisplayItems = 25;
|
||||||
this.refreshDataSize();
|
this.refreshDataSize();
|
||||||
|
if (this.displayMode === 'Binary') {
|
||||||
|
this.closeBinaryDataDisplay();
|
||||||
|
if (this.binaryData.length === 0) {
|
||||||
|
this.displayMode = 'Table';
|
||||||
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
jsonData () {
|
jsonData () {
|
||||||
this.refreshDataSize();
|
this.refreshDataSize();
|
||||||
|
|
Loading…
Reference in a new issue