Add "Open Port" button (#362)
This commit is contained in:
committed by
Marcos Nils
parent
d0ff81cc98
commit
bacf00e658
@@ -389,6 +389,14 @@
|
||||
});
|
||||
}
|
||||
|
||||
$scope.openPort = function(instance) {
|
||||
var port = prompt('What port would you like to open?');
|
||||
if (!port) return;
|
||||
|
||||
var url = $scope.getProxyUrl(instance, port);
|
||||
window.open(url, '_blank');
|
||||
}
|
||||
|
||||
$scope.getProxyUrl = function(instance, port) {
|
||||
var url = 'http://' + instance.proxy_host + '-' + port + '.direct.' + $scope.host;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user