diff options
author | chenjiankun <chenjiankun1@huawei.com> | 2018-03-08 12:18:27 +0000 |
---|---|---|
committer | chenjiankun <chenjiankun1@huawei.com> | 2018-03-08 12:18:27 +0000 |
commit | 1d2acc900a695bee5c1d83d7631725e4d8b18df0 (patch) | |
tree | 249fcd77d191eaca713d7dc5f3c309e8322c6546 /gui/app/scripts/factory | |
parent | 58dd0e8514518e4c266713c1d54ba735b400a5d8 (diff) |
Supporting user config task parameters in GUI
JIRA: YARDSTICK-981
We need to add function to enable user to config task parameters in GUI.
The way to config must be more friendly.
Change-Id: I8746149084f1d554b48ed392f2fef4748e279dfb
Signed-off-by: chenjiankun <chenjiankun1@huawei.com>
Diffstat (limited to 'gui/app/scripts/factory')
-rw-r--r-- | gui/app/scripts/factory/main.factory.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gui/app/scripts/factory/main.factory.js b/gui/app/scripts/factory/main.factory.js index 7637a9ff3..b36838bdf 100644 --- a/gui/app/scripts/factory/main.factory.js +++ b/gui/app/scripts/factory/main.factory.js @@ -214,6 +214,14 @@ angular.module('yardStickGui2App') } }) }, + + taskAddParams: function() { + return $resource(Base_URL + '/api/v2/yardstick/tasks/:taskId', { taskId: "@taskId" }, { + 'put': { + method: 'PUT' + } + }) + }, //delete operate deleteEnv: function() { return $resource(Base_URL + '/api/v2/yardstick/environments/:env_id', { env_id: '@env_id' }, { |