summaryrefslogtreecommitdiffstats
path: root/install
diff options
context:
space:
mode:
authorPetr Vobornik <pvoborni@redhat.com>2014-06-24 12:24:23 +0200
committerPetr Vobornik <pvoborni@redhat.com>2014-06-30 13:11:53 +0200
commit35d3f03843536613b6fdb4e0cf07c44f5d8b5140 (patch)
tree3fe6ed939d87f1f070a04e284b39a56ecca1e247 /install
parent029649c05cbf9edfc80d4552dec479ab24d4872c (diff)
downloadfreeipa-35d3f03843536613b6fdb4e0cf07c44f5d8b5140.tar.gz
freeipa-35d3f03843536613b6fdb4e0cf07c44f5d8b5140.tar.xz
freeipa-35d3f03843536613b6fdb4e0cf07c44f5d8b5140.zip
webui: support unlock user command
Call user-unlock command from Web UI. It will unlock displayed user on current master. https://fedorahosted.org/freeipa/ticket/4407 Reviewed-By: Endi Sukma Dewata <edewata@redhat.com>
Diffstat (limited to 'install')
-rw-r--r--install/ui/src/freeipa/user.js10
-rw-r--r--install/ui/test/data/ipa_init.json4
2 files changed, 12 insertions, 2 deletions
diff --git a/install/ui/src/freeipa/user.js b/install/ui/src/freeipa/user.js
index 73298093b..337405050 100644
--- a/install/ui/src/freeipa/user.js
+++ b/install/ui/src/freeipa/user.js
@@ -270,12 +270,20 @@ return {
'delete',
'reset_password',
{
+ $factory: IPA.object_action,
+ name: 'unlock',
+ method: 'unlock',
+ label: '@i18n:objects.user.unlock',
+ needs_confirm: true,
+ confirm_msg: '@i18n:objects.user.unlock_confirm'
+ },
+ {
$type: 'automember_rebuild',
name: 'automember_rebuild',
label: '@i18n:actions.automember_rebuild'
}
],
- header_actions: ['reset_password', 'enable', 'disable', 'delete', 'automember_rebuild'],
+ header_actions: ['reset_password', 'enable', 'disable', 'delete', 'unlock', 'automember_rebuild'],
state: {
evaluators: [
{
diff --git a/install/ui/test/data/ipa_init.json b/install/ui/test/data/ipa_init.json
index 83ed670d0..6c387690a 100644
--- a/install/ui/test/data/ipa_init.json
+++ b/install/ui/test/data/ipa_init.json
@@ -500,7 +500,9 @@
"mailing": "Mailing Address",
"misc": "Misc. Information",
"status_confirmation": "Are you sure you want to ${action} the user?<br/>The change will take effect immediately.",
- "status_link": "Click to ${action}"
+ "status_link": "Click to ${action}",
+ "unlock": "Unlock",
+ "unlock_confirm": "Are you sure you want to unlock user ${object}?"
}
},
"password": {