fix(editor): Hide pin data in production executions (#4595)

*  Passing an execution mode to the preview iframe so UI can be adjusted based on it
*  Handling production execution mode to hide the pin data in node details view
This commit is contained in:
Milorad FIlipović
2022-11-14 13:28:26 +01:00
committed by GitHub
parent 96b5e4a329
commit edebad1a89
8 changed files with 50 additions and 6 deletions

View File

@@ -1,7 +1,7 @@
<template>
<div :class="$style.container">
<n8n-callout
v-if="canPinData && hasPinData && !editMode.enabled"
v-if="canPinData && hasPinData && !editMode.enabled && !isProductionExecutionPreview"
theme="secondary"
icon="thumbtack"
:class="$style['pinned-data-callout']"
@@ -448,6 +448,10 @@ export default mixins(
type: Boolean,
default: false,
},
isProductionExecutionPreview: {
type: Boolean,
default: false,
},
},
data () {
return {
@@ -630,7 +634,7 @@ export default mixins(
inputData (): INodeExecutionData[] {
let inputData = this.rawInputData;
if (this.node && this.pinData) {
if (this.node && this.pinData && !this.isProductionExecutionPreview) {
inputData = Array.isArray(this.pinData)
? this.pinData.map((value) => ({
json: value,