From 35d3f03843536613b6fdb4e0cf07c44f5d8b5140 Mon Sep 17 00:00:00 2001 From: Petr Vobornik Date: Tue, 24 Jun 2014 12:24:23 +0200 Subject: 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 --- install/ui/src/freeipa/user.js | 10 +++++++++- install/ui/test/data/ipa_init.json | 4 +++- 2 files changed, 12 insertions(+), 2 deletions(-) (limited to 'install') 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 @@ -269,13 +269,21 @@ return { 'disable', '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?
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": { -- cgit