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

@@ -39,7 +39,7 @@ export default mixins(showMessage).extend({
type: String,
default: 'workflow',
validator: (value: string): boolean =>
['workflow', 'execution', 'medium'].includes(value),
['workflow', 'execution'].includes(value),
},
workflow: {
type: Object as () => IWorkflowDb,
@@ -49,6 +49,10 @@ export default mixins(showMessage).extend({
type: String,
required: false,
},
executionMode: {
type: String,
required: false,
},
loaderType: {
type: String,
default: 'image',
@@ -125,6 +129,7 @@ export default mixins(showMessage).extend({
JSON.stringify({
command: 'openExecution',
executionId: this.executionId,
executionMode: this.executionMode || '',
}),
'*',
);