@@ -11566,7 +11566,7 @@ $(this).hide(), $(".reveal-contents", b).show();
11566
11566
});
11567
11567
}
11568
11568
};
11569
- }).directive("copyToClipboard", [ "IS_IOS", function(a ) {
11569
+ }).directive("copyToClipboard", function() {
11570
11570
return {
11571
11571
restrict:"E",
11572
11572
scope:{
@@ -11580,22 +11580,21 @@ templateUrl:"views/directives/_copy-to-clipboard.html",
11580
11580
controller:[ "$scope", function(a) {
11581
11581
a.id = _.uniqueId("clipboardJs");
11582
11582
} ],
11583
- link:function(b, c) {
11584
- if (a) return void (b.hidden = !0);
11585
- var d = $("a", c), e = d.get(0);
11586
- b.inputText && (e = d.get(1));
11587
- var f = new Clipboard(e);
11588
- f.on("success", function(a) {
11589
- $(a.trigger).attr("title", "Copied!").tooltip("fixTitle").tooltip("show").attr("title", "Copy to clipboard").tooltip("fixTitle"), a.clearSelection();
11590
- }), f.on("error", function(a) {
11583
+ link:function(a, b) {
11584
+ var c = $("a", b), d = c.get(0);
11585
+ a.inputText && (d = c.get(1));
11586
+ var e = new Clipboard(d);
11587
+ e.on("success", function(a) {
11588
+ $(a.trigger).attr("title", "Copied!").tooltip("fixTitle").tooltip("show").attr("title", "Copy to Clipboard").tooltip("fixTitle"), a.clearSelection();
11589
+ }), e.on("error", function(a) {
11591
11590
var b = /Mac/i.test(navigator.userAgent) ? "Press ⌘C to copy" :"Press Ctrl-C to copy";
11592
- $(a.trigger).attr("title", b).tooltip("fixTitle").tooltip("show").attr("title", "Copy to clipboard ").tooltip("fixTitle");
11593
- }), c .on("$destroy", function() {
11594
- f .destroy();
11591
+ $(a.trigger).attr("title", b).tooltip("fixTitle").tooltip("show").attr("title", "Copy to Clipboard ").tooltip("fixTitle");
11592
+ }), b .on("$destroy", function() {
11593
+ e .destroy();
11595
11594
});
11596
11595
}
11597
11596
};
11598
- } ] ).directive("shortId", function() {
11597
+ }).directive("shortId", function() {
11599
11598
return {
11600
11599
restrict:"E",
11601
11600
scope:{
@@ -21761,8 +21760,14 @@ var _scriptsTemplatesJs = []byte(`angular.module('openshiftConsoleTemplates', []
21761
21760
"<input ng-if=\"!multiline\" id=\"{{id}}\" type=\"text\" class=\"form-control\" value=\"{{inputText || clipboardText}}\" ng-disabled=\"isDisabled\" ng-readonly=\"!isDisabled\" select-on-focus>\n" +
21762
21761
"<pre ng-if=\"multiline\" id=\"{{id}}\">{{inputText || clipboardText}}</pre>\n" +
21763
21762
"<span ng-class=\"{ 'input-group-btn': !multiline }\" ng-hide=\"hidden\">\n" +
21764
- "<a ng-show=\"!inputText\" data-clipboard-target=\"#{{id}}\" href=\"\" ng-disabled=\"isDisabled\" data-toggle=\"tooltip\" data-placement=\"left\" data-container=\".middle\" title=\"Copy to clipboard\" role=\"button\" class=\"btn btn-default\"><i class=\"fa fa-clipboard\"/></a>\n" +
21765
- "<a ng-show=\"inputText\" data-clipboard-text=\"{{clipboardText}}\" href=\"\" ng-disabled=\"isDisabled\" data-toggle=\"tooltip\" data-placement=\"left\" data-container=\".middle\" title=\"Copy to clipboard\" role=\"button\" class=\"btn btn-default\"><i class=\"fa fa-clipboard\"/></a>\n" +
21763
+ "<a ng-show=\"!inputText\" data-clipboard-target=\"#{{id}}\" href=\"\" ng-disabled=\"isDisabled\" data-toggle=\"tooltip\" data-placement=\"left\" data-container=\".middle\" title=\"Copy to Clipboard\" role=\"button\" class=\"btn btn-default\">\n" +
21764
+ "<i class=\"fa fa-clipboard\" aria-hidden=\"true\"></i>\n" +
21765
+ "<span class=\"sr-only\">Copy to Clipboard</span>\n" +
21766
+ "</a>\n" +
21767
+ "<a ng-show=\"inputText\" data-clipboard-text=\"{{clipboardText}}\" href=\"\" ng-disabled=\"isDisabled\" data-toggle=\"tooltip\" data-placement=\"left\" data-container=\".middle\" title=\"Copy to Clipboard\" role=\"button\" class=\"btn btn-default\">\n" +
21768
+ "<i class=\"fa fa-clipboard\" aria-hidden=\"true\"></i>\n" +
21769
+ "<span class=\"sr-only\">Copy to Clipboard</span>\n" +
21770
+ "</a>\n" +
21766
21771
"</span>\n" +
21767
21772
"</div>"
21768
21773
);
@@ -66442,6 +66447,10 @@ if (c.color || c.backColor) {
66442
66447
var d = "";
66443
66448
c.color && (d += "color:" + c.color + ";"), c.backColor && (d += "background-color:" + c.backColor + ";"), b += ".node-" + this._elementId + '[data-nodeId="' + c.nodeId + '"]{' + d + "}";
66444
66449
}
66450
+ if (c.iconColor) {
66451
+ var d = "color:" + c.iconColor + ";";
66452
+ b += ".node-" + this._elementId + '[data-nodeId="' + c.nodeId + '"] .node-icon{' + d + "}";
66453
+ }
66445
66454
}, this)), this._css + b;
66446
66455
}, g.prototype._template = {
66447
66456
tree:a('<ul class="list-group"></ul>'),
0 commit comments