From 54c8872d259cd071abbc4a70cf8b7adb32173136 Mon Sep 17 00:00:00 2001 From: Konstantin Azizov Date: Wed, 5 Jul 2017 08:16:57 +0300 Subject: [PATCH] feat(container-console): add ability to specify the user (#976) --- .../containerConsole/containerConsole.html | 53 ++++++++++++------- .../containerConsoleController.js | 1 + app/directives/tooltip.js | 2 +- 3 files changed, 37 insertions(+), 19 deletions(-) diff --git a/app/components/containerConsole/containerConsole.html b/app/components/containerConsole/containerConsole.html index e2f1f4d30..eba9b5ea1 100644 --- a/app/components/containerConsole/containerConsole.html +++ b/app/components/containerConsole/containerConsole.html @@ -16,28 +16,45 @@ -
-
+ +
-
-
- - - - - +
+ +
+
+ + + + + +
+
-
-
- - +
+ +
+ +
+
+
+ +
+
+
+
+ +
diff --git a/app/components/containerConsole/containerConsoleController.js b/app/components/containerConsole/containerConsoleController.js index b9da6c20f..8ea20b53b 100644 --- a/app/components/containerConsole/containerConsoleController.js +++ b/app/components/containerConsole/containerConsoleController.js @@ -45,6 +45,7 @@ function ($scope, $stateParams, Container, Image, Exec, $timeout, EndpointProvid AttachStdout: true, AttachStderr: true, Tty: true, + User: $scope.state.user, Cmd: $scope.state.command.replace(' ', ',').split(',') }; diff --git a/app/directives/tooltip.js b/app/directives/tooltip.js index 2293fbf72..b4a696090 100644 --- a/app/directives/tooltip.js +++ b/app/directives/tooltip.js @@ -6,7 +6,7 @@ angular message: '@', position: '@' }, - template: '', + template: '', restrict: 'E' }; return directive;