summaryrefslogtreecommitdiffstats
path: root/cvp/3rd_party/static/testapi-ui/components
diff options
context:
space:
mode:
Diffstat (limited to 'cvp/3rd_party/static/testapi-ui/components')
-rw-r--r--cvp/3rd_party/static/testapi-ui/components/results-report/partials/reportDetails.html5
-rw-r--r--cvp/3rd_party/static/testapi-ui/components/results/results.html6
-rw-r--r--cvp/3rd_party/static/testapi-ui/components/results/resultsController.js4
3 files changed, 7 insertions, 8 deletions
diff --git a/cvp/3rd_party/static/testapi-ui/components/results-report/partials/reportDetails.html b/cvp/3rd_party/static/testapi-ui/components/results-report/partials/reportDetails.html
index 091cab88..f79ac713 100644
--- a/cvp/3rd_party/static/testapi-ui/components/results-report/partials/reportDetails.html
+++ b/cvp/3rd_party/static/testapi-ui/components/results-report/partials/reportDetails.html
@@ -27,10 +27,7 @@ Test Filters:<br />
<uib-accordion-group is-open="isOpen" is-disabled="ctrl.cases == 0">
<uib-accordion-heading>
- {{ ctrl.testId }}
- <small>
- (<strong>Total:</strong> {{ ctrl.cases.length }} tests)
- </small>
+ Test ID: {{ ctrl.testId }}
<i class="pull-right glyphicon" ng-class="{'glyphicon-chevron-down': isOpen, 'glyphicon-chevron-right': !isOpen}"></i>
</uib-accordion-heading>
<ol class="capabilities">
diff --git a/cvp/3rd_party/static/testapi-ui/components/results/results.html b/cvp/3rd_party/static/testapi-ui/components/results/results.html
index 5d6979da..e1d05b2d 100644
--- a/cvp/3rd_party/static/testapi-ui/components/results/results.html
+++ b/cvp/3rd_party/static/testapi-ui/components/results/results.html
@@ -21,6 +21,8 @@
<tr>
<th>Upload Date</th>
<th>Test ID</th>
+ <th>File Name</th>
+ <th>Label</th>
<th>Status</th>
<th>Log</th>
<th class="col-md-2">Operation</th>
@@ -28,10 +30,12 @@
</tr>
</thead>
- <tbody>
+ <tbody style="white-space: nowrap; overflow: hidden; text-overflow: ellipsis;">
<tr ng-repeat="(index, result) in ctrl.data.tests">
<td>{{ result.upload_date }}</td>
<td><a ng-click="ctrl.gotoResultDetail(result.id, result._id)">{{ result.id }}</a></td>
+ <td>{{ result.filename || "None"}}</td>
+ <td><div class="popover-wrapper"><a editable-theme="bs3" onbeforesave="ctrl.toggleCheck(result, 'label', $data)" editable-text="result.label"> {{ result.label || "None" }}</a></div></td>
<td>{{ result.status }}</td>
<td><a ng-click="ctrl.downloadLogs(result.id)">logs</a></td>
<td>
diff --git a/cvp/3rd_party/static/testapi-ui/components/results/resultsController.js b/cvp/3rd_party/static/testapi-ui/components/results/resultsController.js
index 471cec0d..2ece86fb 100644
--- a/cvp/3rd_party/static/testapi-ui/components/results/resultsController.js
+++ b/cvp/3rd_party/static/testapi-ui/components/results/resultsController.js
@@ -251,10 +251,8 @@
})
.success(function(data){
ctrl.uploadState = "";
+ data.filename = file.name;
var createTestUrl = testapiApiUrl + "/tests"
- var fd = new FormData();
- fd.append('results',data.results);
- fd.append('id',data.id);
$http.post(createTestUrl, data)
.success(function(data, status){
if (data.code && data.code != 0) {