From 30fa52859308f8881c982005a562e73fa93aaf65 Mon Sep 17 00:00:00 2001 From: Rohit Yadav Date: Thu, 5 Mar 2020 14:17:36 +0530 Subject: [PATCH] iam: allow accounts to be updated Fixes #179 Signed-off-by: Rohit Yadav --- ui/src/config/section/iam.js | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/ui/src/config/section/iam.js b/ui/src/config/section/iam.js index fcfb83e02ac..479d61c0a45 100644 --- a/ui/src/config/section/iam.js +++ b/ui/src/config/section/iam.js @@ -126,9 +126,17 @@ export default { { api: 'updateAccount', icon: 'edit', - label: 'label.update.account', + label: 'Update Account', dataView: true, - args: ['newname', 'domainid', 'roleid', 'networkdomain', 'details'] + args: ['newname', 'account', 'domainid', 'networkdomain'], + mapping: { + account: { + value: (record) => { return record.name } + }, + domainid: { + value: (record) => { return record.domainid } + } + } }, { api: 'updateResourceCount',