webadmin: do not use angular helpers but do it the old way

This should fix the appdetails refresh
This commit is contained in:
Johannes Zellner
2014-09-21 11:41:43 -07:00
parent 30c6a1b21e
commit eb2d5f6207
+7 -4
View File
@@ -497,10 +497,13 @@ angular.module('Application').service('Client', function ($http, $filter) {
}
});
// filter out old entries
angular.copy($filter('filter')(that._installedApps, function (value) {
return apps.some(function (elem) { return elem.id === value.id; });
}), that._installedApps);
// filter out old entries, going backwards to allow splicing
for(var i = that._installedApps.length - 1; i >= 0; --i) {
if (!apps.some(function (elem) { return (elem.id === that._installedApps[i].id); })) {
that._installedApps.splice(i, 1);
}
}
callback(null);
});