webui: move user reset password action to action dropdown

Reviewed-By: Endi Sukma Dewata <edewata@redhat.com>
This commit is contained in:
Petr Vobornik 2014-04-14 17:01:46 +02:00
parent 4e1c0ad423
commit 2f3dc7908d
2 changed files with 2 additions and 7 deletions

View File

@ -120,11 +120,6 @@ return {
},
{
name: 'account',
action_panel: {
$factory: IPA.action_panel,
name: 'account_actions',
actions: ['reset_password']
},
fields: [
'uid',
{
@ -271,7 +266,7 @@ return {
label: '@i18n:actions.automember_rebuild'
}
],
header_actions: ['enable', 'disable', 'delete', 'automember_rebuild'],
header_actions: ['reset_password', 'enable', 'disable', 'delete', 'automember_rebuild'],
state: {
evaluators: [
{

View File

@ -235,7 +235,7 @@ class test_user(UI_driver):
Execute reset password action
"""
self.action_panel_action('account_actions', 'reset_password')
self.action_list_action('reset_password', False)
self.fill_password_dialog(password)
def fill_password_dialog(self, password, current=None):