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 @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) ->