summaryrefslogtreecommitdiffstats
path: root/cvp/3rd_party/static/testapi-ui/components/results/resultsController.js
diff options
context:
space:
mode:
authorgrakiss <grakiss.wanglei@huawei.com>2017-10-19 23:50:18 -0400
committergrakiss <grakiss.wanglei@huawei.com>2017-10-19 23:50:18 -0400
commit3617b6958c4c44678d64c05e669b50e427fc45f8 (patch)
tree81691a81384000128056377f2a64d3d3fceaa589 /cvp/3rd_party/static/testapi-ui/components/results/resultsController.js
parent54bc0f28fd9b5ec6675401d6c3322b30e72e7d9c (diff)
[web-cvp]Additional columns in ‘My Results’
JIRA: DOVETAIL-532 1. original filename 2. user editable label Change-Id: I1566cecb3d8ceacc14167bb2fb7fa41508f293be Signed-off-by: grakiss <grakiss.wanglei@huawei.com>
Diffstat (limited to 'cvp/3rd_party/static/testapi-ui/components/results/resultsController.js')
-rw-r--r--cvp/3rd_party/static/testapi-ui/components/results/resultsController.js4
1 files changed, 1 insertions, 3 deletions
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) {