mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
fix(editor): Hide data pinning discoverability tooltip in execution view (#5145)
* fix(editor): remove unused prop * fix(editor): Prevent data pinning discoverability tooltip displayed in executions view
This commit is contained in:
@@ -9,7 +9,6 @@
|
|||||||
:isExecuting="isNodeRunning"
|
:isExecuting="isNodeRunning"
|
||||||
:executingMessage="$locale.baseText('ndv.output.executing')"
|
:executingMessage="$locale.baseText('ndv.output.executing')"
|
||||||
:sessionId="sessionId"
|
:sessionId="sessionId"
|
||||||
:isReadOnly="isReadOnly"
|
|
||||||
:blockUI="blockUI"
|
:blockUI="blockUI"
|
||||||
:isProductionExecutionPreview="isProductionExecutionPreview"
|
:isProductionExecutionPreview="isProductionExecutionPreview"
|
||||||
paneType="output"
|
paneType="output"
|
||||||
|
|||||||
@@ -590,10 +590,7 @@ export default mixins(externalHooks, genericHelpers, nodeHelpers, pinData).exten
|
|||||||
this.eventBus.$on('data-pinning-error', this.onDataPinningError);
|
this.eventBus.$on('data-pinning-error', this.onDataPinningError);
|
||||||
this.eventBus.$on('data-unpinning', this.onDataUnpinning);
|
this.eventBus.$on('data-unpinning', this.onDataUnpinning);
|
||||||
|
|
||||||
const hasSeenPinDataTooltip = localStorage.getItem(LOCAL_STORAGE_PIN_DATA_DISCOVERY_NDV_FLAG);
|
this.showPinDataDiscoveryTooltip(this.jsonData);
|
||||||
if (!hasSeenPinDataTooltip) {
|
|
||||||
this.showPinDataDiscoveryTooltip(this.jsonData);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
this.ndvStore.setNDVBranchIndex({
|
this.ndvStore.setNDVBranchIndex({
|
||||||
pane: this.paneType as 'input' | 'output',
|
pane: this.paneType as 'input' | 'output',
|
||||||
@@ -861,7 +858,12 @@ export default mixins(externalHooks, genericHelpers, nodeHelpers, pinData).exten
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (value && value.length > 0) {
|
if (
|
||||||
|
value &&
|
||||||
|
value.length > 0 &&
|
||||||
|
!this.isReadOnly &&
|
||||||
|
!localStorage.getItem(LOCAL_STORAGE_PIN_DATA_DISCOVERY_NDV_FLAG)
|
||||||
|
) {
|
||||||
this.pinDataDiscoveryComplete();
|
this.pinDataDiscoveryComplete();
|
||||||
|
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
@@ -1290,11 +1292,7 @@ export default mixins(externalHooks, genericHelpers, nodeHelpers, pinData).exten
|
|||||||
},
|
},
|
||||||
jsonData(value: IDataObject[]) {
|
jsonData(value: IDataObject[]) {
|
||||||
this.refreshDataSize();
|
this.refreshDataSize();
|
||||||
|
this.showPinDataDiscoveryTooltip(value);
|
||||||
const hasSeenPinDataTooltip = localStorage.getItem(LOCAL_STORAGE_PIN_DATA_DISCOVERY_NDV_FLAG);
|
|
||||||
if (!hasSeenPinDataTooltip) {
|
|
||||||
this.showPinDataDiscoveryTooltip(value);
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
binaryData(newData: IBinaryKeyData[], prevData: IBinaryKeyData[]) {
|
binaryData(newData: IBinaryKeyData[], prevData: IBinaryKeyData[]) {
|
||||||
if (newData.length && !prevData.length && this.displayMode !== 'binary') {
|
if (newData.length && !prevData.length && this.displayMode !== 'binary') {
|
||||||
|
|||||||
Reference in New Issue
Block a user