mirror of
https://github.com/GNS3/gns3-server
synced 2024-11-24 17:28:08 +00:00
parent
66a789672d
commit
43236746f9
@ -204,6 +204,9 @@ class Node:
|
|||||||
|
|
||||||
@symbol.setter
|
@symbol.setter
|
||||||
def symbol(self, val):
|
def symbol(self, val):
|
||||||
|
if val is None:
|
||||||
|
val = ":/symbols/computer.svg"
|
||||||
|
|
||||||
# No abs path, fix them (bug of 1.X)
|
# No abs path, fix them (bug of 1.X)
|
||||||
if not val.startswith(":") and os.path.abspath(val):
|
if not val.startswith(":") and os.path.abspath(val):
|
||||||
val = os.path.basename(val)
|
val = os.path.basename(val)
|
||||||
|
@ -146,7 +146,7 @@ NODE_OBJECT_SCHEMA = {
|
|||||||
"label": LABEL_OBJECT_SCHEMA,
|
"label": LABEL_OBJECT_SCHEMA,
|
||||||
"symbol": {
|
"symbol": {
|
||||||
"description": "Symbol of the node",
|
"description": "Symbol of the node",
|
||||||
"type": "string",
|
"type": ["string", "null"],
|
||||||
"minLength": 1
|
"minLength": 1
|
||||||
},
|
},
|
||||||
"width": {
|
"width": {
|
||||||
|
Loading…
Reference in New Issue
Block a user