Skip to content

Commit 4c7f8c1

Browse files
zonagitzef
andauthored
Display initiation key under input vars column for pending processes (#233)
Co-authored-by: zef <zeferino.o.andrade@jpl.nasa.gov>
1 parent 833ba80 commit 4c7f8c1

1 file changed

Lines changed: 13 additions & 1 deletion

File tree

install/cws-ui/processes.ftl

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -523,7 +523,19 @@
523523
data: { inputVariables: "inputVariables", procStartTime: "procStartTime"},
524524
render: function (data, type) {
525525
if (jQuery.isEmptyObject(data.inputVariables)) {
526-
return "None";
526+
if (jQuery.isEmptyObject(data.initiationKey)) {
527+
return "None";
528+
}
529+
else {
530+
temp = `<div class="var-row-div-flex">`
531+
+ `<div class="var-row-div-flex-sub-1"><b>initiationKey: </b><p style="margin-bottom: 0px;">` + data.initiationKey + `</p></div>`
532+
+ `<div class="var-row-div-flex-sub-2"></div>`
533+
+ `<div class="copySpan" style="width: 30px;">`
534+
+ `<span aria-label="Copy to clipboard" data-microtip-position="top-left" role="tooltip" class="copy" data-isImage="false" data-copyValue="` + data.initiationKey + `" onClick="">`
535+
+ `<img src="images/copy.svg" class="copy-icon clipboard">`
536+
+ `</span></div></div>`;
537+
return temp;
538+
}
527539
}
528540
if (type === 'display') {
529541
var output = "";

0 commit comments

Comments
 (0)