Remove used of Client.onApps
This commit is contained in:
@@ -61,18 +61,6 @@ app.controller('LogsController', ['$scope', '$timeout', '$location', 'Client', f
|
||||
});
|
||||
}
|
||||
|
||||
Client.onApps(function () {
|
||||
if ($scope.selected.type !== 'app') return;
|
||||
|
||||
var appId = $scope.selected.value;
|
||||
|
||||
Client.getCachedApp(appId, function (error, result) {
|
||||
if (error) return console.error(error);
|
||||
|
||||
$scope.selectedAppInfo = result;
|
||||
});
|
||||
});
|
||||
|
||||
function loadId(id, callback) {
|
||||
// Add built-in log types for now
|
||||
var BUILT_IN_LOGS = [
|
||||
@@ -87,6 +75,8 @@ app.controller('LogsController', ['$scope', '$timeout', '$location', 'Client', f
|
||||
Client.getApp(id, function (error, app) {
|
||||
if (error) return callback(error);
|
||||
|
||||
$scope.selectedAppInfo = app;
|
||||
|
||||
$scope.selected = {
|
||||
type: 'app',
|
||||
value: app.id,
|
||||
|
||||
Reference in New Issue
Block a user