mirror of
https://github.com/lxsang/antos-frontend.git
synced 2024-12-27 17:58:22 +01:00
fix repository loading
This commit is contained in:
parent
9008396ac9
commit
a3960766d1
@ -122,14 +122,14 @@ class MarketPlace extends this.OS.GUI.BaseApplication
|
|||||||
@applist.set "data", list
|
@applist.set "data", list
|
||||||
return
|
return
|
||||||
|
|
||||||
@_api.get data.url
|
@_api.get data.url, "json"
|
||||||
.then ( d ) =>
|
.then ( d ) =>
|
||||||
for v in d
|
for v in d
|
||||||
v.text = v.name
|
v.text = v.name
|
||||||
v.iconclass = "fa fa-adn"
|
v.iconclass = "fa fa-adn"
|
||||||
@apps_meta = d
|
@apps_meta = d
|
||||||
@applist.set "data", d
|
@applist.set "data", d
|
||||||
.catch (e) ->
|
.catch (e) =>
|
||||||
@error __("Fail to fetch packages list from: {0}", data.url), e
|
@error __("Fail to fetch packages list from: {0}", data.url), e
|
||||||
|
|
||||||
appDetail: (d) ->
|
appDetail: (d) ->
|
||||||
|
Loading…
Reference in New Issue
Block a user