mirror of
https://github.com/lxsang/antos-frontend.git
synced 2024-12-28 02:08:22 +01:00
dynamic system menu
This commit is contained in:
parent
33ab53dddb
commit
1311ea2a88
@ -276,6 +276,7 @@ self.OS.GUI =
|
|||||||
#now get app list
|
#now get app list
|
||||||
_API.packages.fetch (r) ->
|
_API.packages.fetch (r) ->
|
||||||
if r.result
|
if r.result
|
||||||
|
r.result = ( it for it in r.result when it.app )
|
||||||
v.text = v.name for k, v of r.result
|
v.text = v.name for k, v of r.result
|
||||||
menu.child[0].child = r.result if r.result
|
menu.child[0].child = r.result if r.result
|
||||||
($ "[data-id = 'os_menu']", "#syspanel")[0].set "items", [menu]
|
($ "[data-id = 'os_menu']", "#syspanel")[0].set "items", [menu]
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"app":"CoreServices",
|
"app":null,
|
||||||
"name":"CoreServices",
|
"name":"CoreServices",
|
||||||
"description":"This is the core services",
|
"description":"This is the core services",
|
||||||
"info":{
|
"info":{
|
||||||
|
Loading…
Reference in New Issue
Block a user