terminal: Remove unused dropdown logic
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user