[TIC-Web] Apply changed /exports API 38/123338/1
authorHeekyoung, Oh <heekyoung.oh@samsung.com>
Wed, 5 Apr 2017 08:00:56 +0000 (17:00 +0900)
committerHeekyoung, Oh <heekyoung.oh@samsung.com>
Wed, 5 Apr 2017 08:03:32 +0000 (17:03 +0900)
- Updated the variables for the changed "/exports" API
- from kspath to path
- and recipes(array)

Change-Id: I75cd2da9a7531da49491d08f923ca689433e5b2f
Signed-off-by: Heekyoung, Oh <heekyoung.oh@samsung.com>
public/src/js/page/package.js

index 9bf202a..ac72232 100644 (file)
@@ -90,9 +90,7 @@ define([
              * filenmae generated by ticcore
              */
             msgData = {
-                recipe: {
-                    name: 'default'
-                },
+                recipes: Settings.getRecipeStore(),
                 packages: _.map(checkedPackagesList, 'name'),
                 outdir: newJobModel.getJobPath()
             };
@@ -104,14 +102,14 @@ define([
             }
 
             function onSuccessGetRecipeFile(responseObj) {
-                var msgObj, strKsName, strKsPath, strArch;
+                var msgObj, strKsName, strPath, strArch;
 
                 if (!_.isEmpty(responseObj) && responseObj.result === "false") {
                     logger.error(responseObj.message);
                     throw responseObj;
                 }
-                strKsPath = responseObj.data.kspath;
-                strKsName = strKsPath.substring(strKsPath.lastIndexOf('/') + 1);
+                strPath = responseObj.data.path;
+                strKsName = strPath.substring(strPath.lastIndexOf('/') + 1);
                 strArch = responseObj.data.arch;
 
                 // update