mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
feat(editor): add readonly state for nodes (#4299)
* fix(editor): add types to Node.vue component props * fix(editor): some cleanup in NodeView * fix(editor): fix some boolean usage * feat(editor): check foreign credentials * fix(editor): passing readOnly to inputs * fix(editor): add types to component and solve property mutation * fix(editor): add types to component and solve property mutation * fix(editor): component property type * fix(editor): component property type * fix(editor): default prop values * fix(editor): fix FixedCollectionParameter.vue
This commit is contained in:
@@ -7,8 +7,8 @@
|
||||
class="node-name"
|
||||
:value="node && node.name"
|
||||
:nodeType="nodeType"
|
||||
:isReadOnly="isReadOnly"
|
||||
@input="nameChanged"
|
||||
:readOnly="isReadOnly"
|
||||
></NodeTitle>
|
||||
<div v-if="!isReadOnly">
|
||||
<NodeExecuteButton
|
||||
@@ -72,11 +72,11 @@
|
||||
:parameters="parametersNoneSetting"
|
||||
:hideDelete="true"
|
||||
:nodeValues="nodeValues"
|
||||
:isReadOnly="isReadOnly"
|
||||
path="parameters"
|
||||
@valueChanged="valueChanged"
|
||||
@activate="onWorkflowActivate"
|
||||
>
|
||||
|
||||
<node-credentials :node="node" @credentialSelected="credentialSelected" />
|
||||
</parameter-input-list>
|
||||
<div v-if="parametersNoneSetting.length === 0" class="no-parameters">
|
||||
@@ -99,6 +99,7 @@
|
||||
<parameter-input-list
|
||||
:parameters="parametersSetting"
|
||||
:nodeValues="nodeValues"
|
||||
:isReadOnly="isReadOnly"
|
||||
path="parameters"
|
||||
@valueChanged="valueChanged"
|
||||
/>
|
||||
@@ -106,6 +107,7 @@
|
||||
:parameters="nodeSettings"
|
||||
:hideDelete="true"
|
||||
:nodeValues="nodeValues"
|
||||
:isReadOnly="isReadOnly"
|
||||
path=""
|
||||
@valueChanged="valueChanged"
|
||||
/>
|
||||
@@ -142,14 +144,13 @@ import NodeWebhooks from '@/components/NodeWebhooks.vue';
|
||||
import { get, set, unset } from 'lodash';
|
||||
|
||||
import { externalHooks } from '@/components/mixins/externalHooks';
|
||||
import { genericHelpers } from '@/components/mixins/genericHelpers';
|
||||
import { nodeHelpers } from '@/components/mixins/nodeHelpers';
|
||||
|
||||
import mixins from 'vue-typed-mixins';
|
||||
import NodeExecuteButton from './NodeExecuteButton.vue';
|
||||
import { isCommunityPackageName } from './helpers';
|
||||
|
||||
export default mixins(externalHooks, genericHelpers, nodeHelpers).extend({
|
||||
export default mixins(externalHooks, nodeHelpers).extend({
|
||||
name: 'NodeSettings',
|
||||
components: {
|
||||
NodeTitle,
|
||||
@@ -235,6 +236,9 @@ export default mixins(externalHooks, genericHelpers, nodeHelpers).extend({
|
||||
nodeType: {
|
||||
type: Object as PropType<INodeTypeDescription>,
|
||||
},
|
||||
isReadOnly: {
|
||||
type: Boolean,
|
||||
},
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user