feat: Add dynamic field to code field in types module
This commit adds a dynamic field to the code field in the types module. The dynamic field is set to True, indicating that the field allows updates. refactor: Remove dynamic field from FrontendNode class In the FrontendNode class of the base module, the dynamic field has been removed. This change aligns with the removal of the dynamic field in the types module. refactor: Remove dynamic field from CustomComponentNode class The dynamic field has been removed from the CustomComponentNode class in the tools module. This aligns with the removal of the dynamic field in the FrontendNode class.
This commit is contained in:
parent
48345dd8dd
commit
fd16b385ab
3 changed files with 1 additions and 3 deletions
|
|
@ -80,6 +80,7 @@ def add_code_field(template, raw_code):
|
|||
# Field with the Python code to allow update
|
||||
code_field = {
|
||||
"code": {
|
||||
"dynamic": True,
|
||||
"required": True,
|
||||
"placeholder": "",
|
||||
"show": True,
|
||||
|
|
|
|||
|
|
@ -16,7 +16,6 @@ class FrontendNode(BaseModel):
|
|||
name: str = ""
|
||||
display_name: str = ""
|
||||
custom_fields: List[str] = []
|
||||
dynamic: bool = False
|
||||
|
||||
def to_dict(self) -> dict:
|
||||
return {
|
||||
|
|
@ -26,7 +25,6 @@ class FrontendNode(BaseModel):
|
|||
"base_classes": self.base_classes,
|
||||
"display_name": self.display_name or self.name,
|
||||
"custom_fields": self.custom_fields,
|
||||
"dynamic": self.dynamic,
|
||||
},
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -161,7 +161,6 @@ class CustomComponentNode(FrontendNode):
|
|||
)
|
||||
description: str = "Python Class to be executed."
|
||||
base_classes: list[str] = []
|
||||
dynamic: bool = True
|
||||
|
||||
def to_dict(self):
|
||||
return super().to_dict()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue