terminal: Remove unused dropdown logic

This commit is contained in:
Girish Ramakrishnan
2018-06-25 19:10:26 -07:00
parent bdf57a5c0a
commit 8d98cefcca

View File

@@ -100,19 +100,6 @@ app.controller('TerminalController', ['$scope', '$timeout', '$location', 'Client
fileUpload.click();
};
$scope.populateDropdown = function () {
Client.getInstalledApps().forEach(function (app) {
$scope.apps.push({
type: 'app',
value: app.id,
name: app.fqdn + ' (' + app.manifest.title + ')',
addons: app.manifest.addons
});
});
// $scope.selected = $scope.apps[0];
};
$scope.usesAddon = function (addon) {
if (!$scope.selected || !$scope.selected.addons) return false;
return !!Object.keys($scope.selected.addons).find(function (a) { return a === addon; });
@@ -308,8 +295,6 @@ app.controller('TerminalController', ['$scope', '$timeout', '$location', 'Client
$scope.terminal.focus();
};
Client.onReady($scope.populateDropdown);
// terminal right click handling
$scope.terminalClear = function () {
if (!$scope.terminal) return;