diff options
author | Petr Vobornik <pvoborni@redhat.com> | 2012-08-27 10:57:47 +0200 |
---|---|---|
committer | Petr Vobornik <pvoborni@redhat.com> | 2012-08-29 12:00:06 +0200 |
commit | 81007ff38578588906737df3082b42fb7f2ee011 (patch) | |
tree | 367340e56e48f2288671eccc647c52405838b1b4 /install/ui/hbac.js | |
parent | 7d3aa96103b03ef50ec1f6d94e2f578d800163fc (diff) | |
download | freeipa-81007ff38578588906737df3082b42fb7f2ee011.tar.gz freeipa-81007ff38578588906737df3082b42fb7f2ee011.tar.xz freeipa-81007ff38578588906737df3082b42fb7f2ee011.zip |
Successful action notification
User was not notified about success of actions executed from action list, action panel or facet cotrol bar.
This patch adds IPA.notify_success(message) call. It creates a yellow notification area with supplied message in Web UI header in the middle of the green area (empty space of first level navigation).
This area is displayed for 3s and then it fades out (800ms). It also fades out when it is clicked.
This call is used(directly or indirectly) in:
* search facets: delete, disable, enable actions
* details facets: delete action
* user details facet: reset password action
* host details facet: unprovision, set OTP actions
* service details facet: unprovision action
* host and service details facet: request, revoke, restore certificates actions
* group details facet: change to POSIX/external actions
* dns zone details facet: add/remove permission actions
https://fedorahosted.org/freeipa/ticket/2977
Diffstat (limited to 'install/ui/hbac.js')
-rw-r--r-- | install/ui/hbac.js | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/install/ui/hbac.js b/install/ui/hbac.js index cb3249426..a3683e7bb 100644 --- a/install/ui/hbac.js +++ b/install/ui/hbac.js @@ -48,20 +48,8 @@ IPA.hbac.rule_entity = function(spec) { 'description' ], actions: [ - { - name: 'disable', - factory: IPA.batch_items_action, - method: 'disable', - needs_confirm: true, - enable_cond: ['item-selected'] - }, - { - name: 'enable', - factory: IPA.batch_items_action, - method: 'enable', - needs_confirm: true, - enable_cond: ['item-selected'] - } + IPA.batch_disable_action, + IPA.batch_enable_action ], control_buttons: [ { |