mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-05 23:01:15 +02:00
Locked state should not be used when duplicating a node.
This commit is contained in:
1 parent
724eda1f35
commit
3f679bd106
2 files changed
+1
-4
No files matched your search
@@ -1070,6 +1070,7 @@ class Project:
|
||||
data['x'] = x
|
||||
data['y'] = y
|
||||
data['z'] = z
|
||||
data['locked'] = False # duplicated node must not be locked
|
||||
new_node_uuid = str(uuid.uuid4())
|
||||
new_node = await self.add_node(
|
||||
node.compute,
|
||||
|
||||
@@ -284,10 +284,6 @@ NODE_DUPLICATE_SCHEMA = {
|
||||
"z": {
|
||||
"description": "Z position of the node",
|
||||
"type": "integer"
|
||||
},
|
||||
"locked": {
|
||||
"description": "Whether the element locked or not",
|
||||
"type": "boolean"
|
||||
}
|
||||
},
|
||||
"additionalProperties": False,
|
||||
|
||||
Reference in new issue
Block a user