Skip to content

Commit

Permalink
Fixes string copy buttons for output variables in history
Browse files Browse the repository at this point in the history
  • Loading branch information
jdrodjpl committed Dec 16, 2024
1 parent fb0fafa commit be8aee7
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions install/cws-ui/history.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@
}
var copyValue = $(this).attr('data-copyValue');
var isImage = $(this).attr('data-isImage');
console.log(isImage);
copyInput(copyValue, isImage);
$(this).attr('aria-label', 'Copied!');
setTimeout(function () {
Expand Down Expand Up @@ -671,7 +670,7 @@
+ `<div class="proc-var-flex-main-sub-3">`
+ tempVal + `</div></div>`
+ `<div class="proc-var-flex-btn">`
+ `<span aria-label="Copy to clipboard" data-microtip-position="top-left" role="tooltip" class="copy" data-isImage="true" data-copyValue="` + tempVal + `" onClick=''>`
+ `<span aria-label="Copy to clipboard" data-microtip-position="top-left" role="tooltip" class="copy" data-isImage="false" data-copyValue="` + tempVal + `" onClick=''>`
+ `<img src="images/copy.svg" class="copy-icon clipboard">`
+ `</span></div></div>`;
}
Expand Down Expand Up @@ -757,7 +756,7 @@
+ `<div class="proc-var-flex-main-sub-3">`
+ tempVal + `</div></div>`
+ `<div class="proc-var-flex-btn">`
+ `<span aria-label="Copy to clipboard" data-microtip-position="top-left" role="tooltip" class="copy" data-isImage="true" data-copyValue="` + tempVal + `" onClick=''>`
+ `<span aria-label="Copy to clipboard" data-microtip-position="top-left" role="tooltip" class="copy" data-isImage="false" data-copyValue="` + tempVal + `" onClick=''>`
+ `<img src="images/copy.svg" class="copy-icon clipboard">`
+ `</span></div></div>`;
Expand Down Expand Up @@ -830,7 +829,7 @@
+ `<div class="proc-var-flex-main-sub-3">`
+ tempVal + `</div></div>`
+ `<div class="proc-var-flex-btn">`
+ `<span aria-label="Copy to clipboard" data-microtip-position="top-left" role="tooltip" class="copy" data-isImage="true" data-copyValue="` + tempVal + `" onClick=''>`
+ `<span aria-label="Copy to clipboard" data-microtip-position="top-left" role="tooltip" class="copy" data-isImage="false" data-copyValue="` + tempVal + `" onClick=''>`
+ `<img src="images/copy.svg" class="copy-icon clipboard">`
+ `</span></div></div>`;
}
Expand Down Expand Up @@ -897,7 +896,7 @@
+ `<div class="proc-var-flex-main-sub-3">`
+ tempVal + `</div></div>`
+ `<div class="proc-var-flex-btn">`
+ `<span aria-label="Copy to clipboard" data-microtip-position="top-left" role="tooltip" class="copy" data-isImage="true" data-copyValue="` + tempVal + `" onClick=''>`
+ `<span aria-label="Copy to clipboard" data-microtip-position="top-left" role="tooltip" class="copy" data-isImage="false" data-copyValue="` + tempVal + `" onClick=''>`
+ `<img src="images/copy.svg" class="copy-icon clipboard">`
+ `</span></div></div>`;
}
Expand Down

0 comments on commit be8aee7

Please sign in to comment.