fix repository loading

This commit is contained in:
Xuan Sang LE 2020-05-20 23:47:31 +02:00
parent 9008396ac9
commit a3960766d1

View File

@ -122,14 +122,14 @@ class MarketPlace extends this.OS.GUI.BaseApplication
@applist.set "data", list
return
@_api.get data.url
@_api.get data.url, "json"
.then ( d ) =>
for v in d
v.text = v.name
v.iconclass = "fa fa-adn"
@apps_meta = d
@applist.set "data", d
.catch (e) ->
.catch (e) =>
@error __("Fail to fetch packages list from: {0}", data.url), e
appDetail: (d) ->