Commit 3712cdd8 by aa.gusti

Route order children

1 parent 0bf5ddb1
...@@ -476,6 +476,7 @@ def get_children(rows): ...@@ -476,6 +476,7 @@ def get_children(rows):
id=r.id, id=r.id,
path=r.path, nama=r.nama, is_menu=r.is_menu, path=r.path, nama=r.nama, is_menu=r.is_menu,
icon=r.icon, icon=r.icon,
permission=r.permission,
route_names=[r.kode] + get_route_names(r.children), route_names=[r.kode] + get_route_names(r.children),
children=get_children(r.children), children=get_children(r.children),
has_sub=r.path.find("/") == -1 has_sub=r.path.find("/") == -1
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!