@@ -4031,26 +4031,24 @@ angular.module('openshiftConsoleTemplates', []).run(['$templateCache', function(
4031
4031
"</p>\n" +
4032
4032
"<p>\n" +
4033
4033
"After downloading and installing it, you can start by logging in using<span ng-if=\"sessionToken\"> this current session token</span>:\n" +
4034
- "<div class=\"code prettyprint ng-binding\" ng-if=\"sessionToken\">\n" +
4035
- "oc login {{loginBaseURL}} --token=<span ng-show=\"showSessionToken\">{{sessionToken}}</span><a href=\"#\" ng-click=\"toggleShowSessionToken()\" ng-show=\"!showSessionToken\">...click to show token...</a>\n" +
4036
- "</div>\n" +
4034
+ "<copy-to-clipboard display-wide=\"true\" clipboard-text=\"'oc login ' + loginBaseURL + ' --token=' + sessionToken\" input-text=\"'oc login ' + loginBaseURL + ' --token=<hidden>'\"></copy-to-clipboard>\n" +
4037
4035
"<pre class=\"code prettyprint ng-binding\" ng-if=\"!sessionToken\">\n" +
4038
4036
" oc login {{loginBaseURL}}\n" +
4039
4037
" </pre>\n" +
4040
4038
"</p>\n" +
4041
- "<div ng-show=\"showSessionToken\" class=\"alert alert-warning\">\n" +
4039
+ "<div class=\"alert alert-warning\">\n" +
4042
4040
"<span class=\"pficon pficon-warning-triangle-o\" aria-hidden=\"true\"></span>\n" +
4043
4041
"<strong>A token is a form of a password.</strong>\n" +
4044
4042
"Do not share your API token.\n" +
4045
4043
"</div>\n" +
4046
4044
"<p>After you login to your account you will get a list of projects that you can switch between:\n" +
4047
- "<pre class =\"code prettyprint\"> oc project <i> project-name</i></pre >\n" +
4045
+ "<copy-to-clipboard display-wide =\"true\" clipboard-text=\"' oc project <project-name>'\"></copy-to-clipboard >\n" +
4048
4046
"</p>\n" +
4049
4047
"<p>If you do not have any existing projects, you can create one:\n" +
4050
- "<pre class =\"code prettyprint\"> oc new-project <i> project-name</i></pre >\n" +
4048
+ "<copy-to-clipboard display-wide =\"true\" clipboard-text=\"' oc new-project <project-name>'\"></copy-to-clipboard >\n" +
4051
4049
"</p>\n" +
4052
4050
"<p>To show a high level overview of the current project:\n" +
4053
- "<pre class =\"code prettyprint\"> oc status</pre >\n" +
4051
+ "<copy-to-clipboard display-wide =\"true\" clipboard-text=\"' oc status'\"></copy-to-clipboard >\n" +
4054
4052
"</p>\n" +
4055
4053
"<p>For other information about the command line tools, check the <a target=\"_blank\" href=\"{{'cli' | helpLink}}\">CLI Reference</a> and <a target=\"_blank\" href=\"{{'basic_cli_operations' | helpLink}}\">Basic CLI Operations</a>.</p>\n" +
4056
4054
"</div>\n" +
@@ -5049,10 +5047,11 @@ angular.module('openshiftConsoleTemplates', []).run(['$templateCache', function(
5049
5047
5050
5048
5051
5049
$templateCache.put('views/directives/_copy-to-clipboard.html',
5052
- "<div class=\"input-group copy-to-clipboard\">\n" +
5053
- "<input id=\"{{id}}\" type=\"text\" class=\"form-control\" value=\"{{clipboardText}}\" ng-disabled=\"isDisabled\" ng-readonly=\"!isDisabled\" select-on-focus>\n" +
5050
+ "<div class=\"input-group copy-to-clipboard\" ng-class=\"{'limit-width': !displayWide}\" >\n" +
5051
+ "<input id=\"{{id}}\" type=\"text\" class=\"form-control\" value=\"{{inputText ? inputText : clipboardText}}\" ng-disabled=\"isDisabled\" ng-readonly=\"!isDisabled\" select-on-focus>\n" +
5054
5052
"<span class=\"input-group-btn\" ng-hide=\"hidden\">\n" +
5055
- "<a data-clipboard-target=\"#{{id}}\" ng-disabled=\"isDisabled\" data-toggle=\"tooltip\" title=\"Copy to clipboard\" role=\"button\" class=\"btn btn-default\"><i class=\"fa fa-clipboard\"/></a>\n" +
5053
+ "<a ng-show=\"!inputText\" data-clipboard-target=\"#{{id}}\" ng-disabled=\"isDisabled\" data-toggle=\"tooltip\" title=\"Copy to clipboard\" role=\"button\" class=\"btn btn-default\"><i class=\"fa fa-clipboard\"/></a>\n" +
5054
+ "<a ng-show=\"inputText\" data-clipboard-text=\"{{clipboardText}}\" ng-disabled=\"isDisabled\" data-toggle=\"tooltip\" title=\"Copy to clipboard\" role=\"button\" class=\"btn btn-default\"><i class=\"fa fa-clipboard\"/></a>\n" +
5056
5055
"</span>\n" +
5057
5056
"</div>"
5058
5057
);
0 commit comments