1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-11-24 17:28:08 +00:00

Locked state should not be used when duplicating a node.

This commit is contained in:
grossmj 2019-03-02 16:39:05 +07:00
parent 724eda1f35
commit 3f679bd106
2 changed files with 1 additions and 4 deletions

View File

@ -1070,6 +1070,7 @@ class Project:
data['x'] = x data['x'] = x
data['y'] = y data['y'] = y
data['z'] = z data['z'] = z
data['locked'] = False # duplicated node must not be locked
new_node_uuid = str(uuid.uuid4()) new_node_uuid = str(uuid.uuid4())
new_node = await self.add_node( new_node = await self.add_node(
node.compute, node.compute,

View File

@ -284,10 +284,6 @@ NODE_DUPLICATE_SCHEMA = {
"z": { "z": {
"description": "Z position of the node", "description": "Z position of the node",
"type": "integer" "type": "integer"
},
"locked": {
"description": "Whether the element locked or not",
"type": "boolean"
} }
}, },
"additionalProperties": False, "additionalProperties": False,