add flag to indicate if component was edited
This commit is contained in:
parent
44d6c959ce
commit
d2d9bd3b05
1 changed files with 4 additions and 0 deletions
|
|
@ -86,6 +86,10 @@ def update_frontend_node_with_template_values(frontend_node, raw_frontend_node):
|
|||
|
||||
update_template_values(frontend_node["template"], raw_frontend_node["template"])
|
||||
|
||||
old_code = raw_frontend_node['template']['code']['value']
|
||||
new_code = frontend_node['template']['code']['value']
|
||||
frontend_node['edited'] = old_code != new_code
|
||||
|
||||
return frontend_node
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue