SOL console in new window button
Created button to open SOL console in new
window.
Resolves openbmc/openbmc#3153
Tested: Verified that button brings up new window
and that SOL console functions in new window.
Change-Id: Idf8ff314e9a14cba0820823afd1ce60e4b3bbc4f
Signed-off-by: beccabroek <beccabroek@gmail.com>
diff --git a/app/common/directives/serial-console.js b/app/common/directives/serial-console.js
index 7ce2e62..b320bdc 100644
--- a/app/common/directives/serial-console.js
+++ b/app/common/directives/serial-console.js
@@ -8,7 +8,7 @@
return {
'restrict': 'E',
'template': require('./serial-console.html'),
- 'scope': {'path': '='},
+ 'scope': {'path': '=', 'showTabBtn': '=?'},
'controller': [
'$scope', '$window', 'dataService',
function($scope, $window, dataService) {
@@ -55,6 +55,12 @@
'websocket closed. code: ' + event.code +
' reason: ' + event.reason);
};
+ $scope.openTerminalWindow = function() {
+ $window.open(
+ '#/server-control/remote-console-window',
+ 'Remote Console Window',
+ 'directories=no,titlebar=no,toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=yes,width=600,height=550');
+ };
}
]
};