mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
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:
committed by
GitHub
parent
96b5e4a329
commit
edebad1a89
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user