@@ -3871,26 +3871,24 @@ angular.module('openshiftConsoleTemplates', []).run(['$templateCache', function(
3871
3871
"</p>\n" +
3872
3872
"<p>\n" +
3873
3873
"After downloading and installing it, you can start by logging in using<span ng-if=\"sessionToken\"> this current session token</span>:\n" +
3874
- "<div class=\"code prettyprint ng-binding\" ng-if=\"sessionToken\">\n" +
3875
- "oc login {{loginBaseURL}} --token=<span ng-show=\"showSessionToken\">{{sessionToken}}</span><a href=\"#\" ng-click=\"toggleShowSessionToken()\" ng-show=\"!showSessionToken\">...click to show token...</a>\n" +
3876
- "</div>\n" +
3874
+ "<copy-to-clipboard display-wide=\"true\" clipboard-text=\"'oc login ' + loginBaseURL + ' --token=' + sessionToken\" input-text=\"'oc login ' + loginBaseURL + ' --token=<hidden>'\"></copy-to-clipboard>\n" +
3877
3875
"<pre class=\"code prettyprint ng-binding\" ng-if=\"!sessionToken\">\n" +
3878
3876
" oc login {{loginBaseURL}}\n" +
3879
3877
" </pre>\n" +
3880
3878
"</p>\n" +
3881
- "<div ng-show=\"showSessionToken\" class=\"alert alert-warning\">\n" +
3879
+ "<div class=\"alert alert-warning\">\n" +
3882
3880
"<span class=\"pficon pficon-warning-triangle-o\" aria-hidden=\"true\"></span>\n" +
3883
3881
"<strong>A token is a form of a password.</strong>\n" +
3884
3882
"Do not share your API token.\n" +
3885
3883
"</div>\n" +
3886
3884
"<p>After you login to your account you will get a list of projects that you can switch between:\n" +
3887
- "<pre class =\"code prettyprint\"> oc project <i> project-name</i></pre >\n" +
3885
+ "<copy-to-clipboard display-wide =\"true\" clipboard-text=\"' oc project <project-name>'\"></copy-to-clipboard >\n" +
3888
3886
"</p>\n" +
3889
3887
"<p>If you do not have any existing projects, you can create one:\n" +
3890
- "<pre class =\"code prettyprint\"> oc new-project <i> project-name</i></pre >\n" +
3888
+ "<copy-to-clipboard display-wide =\"true\" clipboard-text=\"' oc new-project <project-name>'\"></copy-to-clipboard >\n" +
3891
3889
"</p>\n" +
3892
3890
"<p>To show a high level overview of the current project:\n" +
3893
- "<pre class =\"code prettyprint\"> oc status</pre >\n" +
3891
+ "<copy-to-clipboard display-wide =\"true\" clipboard-text=\"' oc status'\"></copy-to-clipboard >\n" +
3894
3892
"</p>\n" +
3895
3893
"<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" +
3896
3894
"</div>\n" +
@@ -4839,10 +4837,11 @@ angular.module('openshiftConsoleTemplates', []).run(['$templateCache', function(
4839
4837
4840
4838
4841
4839
$templateCache.put('views/directives/_copy-to-clipboard.html',
4842
- "<div class=\"input-group copy-to-clipboard\">\n" +
4843
- "<input id=\"{{id}}\" type=\"text\" class=\"form-control\" value=\"{{clipboardText}}\" ng-disabled=\"isDisabled\" ng-readonly=\"!isDisabled\" select-on-focus>\n" +
4840
+ "<div class=\"input-group copy-to-clipboard\" ng-class=\"{'limit-width': !displayWide}\" >\n" +
4841
+ "<input id=\"{{id}}\" type=\"text\" class=\"form-control\" value=\"{{inputText ? inputText : clipboardText}}\" ng-disabled=\"isDisabled\" ng-readonly=\"!isDisabled\" select-on-focus>\n" +
4844
4842
"<span class=\"input-group-btn\" ng-hide=\"hidden\">\n" +
4845
- "<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" +
4843
+ "<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" +
4844
+ "<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" +
4846
4845
"</span>\n" +
4847
4846
"</div>"
4848
4847
);
0 commit comments