Keep binary data visible on re-execution

This commit is contained in:
Jan Oberhauser
2020-12-26 23:11:25 +01:00
parent 17056122af
commit aaae7964d6
2 changed files with 8 additions and 6 deletions

View File

@@ -594,10 +594,6 @@ export default mixins(
// Data is reasonable small (< 200kb) so display it directly
this.showData = true;
}
if (this.displayMode === 'Binary' && this.binaryData.length === 0) {
this.displayMode = 'Table';
}
},
},
watch: {
@@ -606,6 +602,12 @@ export default mixins(
this.outputIndex = 0;
this.maxDisplayItems = 25;
this.refreshDataSize();
if (this.displayMode === 'Binary') {
this.closeBinaryDataDisplay();
if (this.binaryData.length === 0) {
this.displayMode = 'Table';
}
}
},
jsonData () {
this.refreshDataSize();