Fix global app list state
This commit is contained in:
parent
063071b58d
commit
2f6dc8743e
1 changed files with 3 additions and 2 deletions
|
@ -86,11 +86,12 @@ OC.Settings.Apps = OC.Settings.Apps || {
|
|||
}), {
|
||||
type:'GET',
|
||||
success: function (apps) {
|
||||
var appList = _.map(_.indexBy(apps.apps, 'id'), function(app) {
|
||||
var appListWithIndex = _.indexBy(apps.apps, 'id');
|
||||
OC.Settings.Apps.State.apps = appListWithIndex;
|
||||
var appList = _.map(appListWithIndex, function(app) {
|
||||
// default values for missing fields
|
||||
return _.extend({level: 0}, app);
|
||||
});
|
||||
OC.Settings.Apps.State.apps = appList;
|
||||
var source = $("#app-template").html();
|
||||
var template = Handlebars.compile(source);
|
||||
|
||||
|
|
Loading…
Reference in a new issue