mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
fix: Don't show pin button in input panel when there's binary data (#11267)
This commit is contained in:
@@ -256,11 +256,19 @@ export default defineComponent({
|
||||
return this.nodeTypesStore.isTriggerNode(this.node.type);
|
||||
},
|
||||
showPinButton(): boolean {
|
||||
return Boolean(
|
||||
(this.canPinData || this.pinnedData.hasData.value || !!this.binaryData?.length) &&
|
||||
(this.rawInputData.length || this.pinnedData.hasData.value) &&
|
||||
!this.editMode.enabled,
|
||||
);
|
||||
if (!this.rawInputData.length && !this.pinnedData.hasData.value) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (this.editMode.enabled) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (this.binaryData?.length) {
|
||||
return this.isPaneTypeOutput;
|
||||
}
|
||||
|
||||
return this.canPinData;
|
||||
},
|
||||
pinButtonDisabled(): boolean {
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user