summaryrefslogtreecommitdiffstats
path: root/install/ui/sudo.js
diff options
context:
space:
mode:
authorEndi Sukma Dewata <edewata@redhat.com>2012-01-18 21:54:41 -0600
committerPetr Voborník <pvoborni@redhat.com>2012-01-23 15:38:41 +0100
commitb353239e59a8eb32fb1ac66e29228dc95b74e4e6 (patch)
tree09093bfd4ae3a5954c680998000635c15165c91f /install/ui/sudo.js
parentfef343ae8f501aa67d4c746d9c7103d797fd6be2 (diff)
downloadfreeipa-b353239e59a8eb32fb1ac66e29228dc95b74e4e6.tar.gz
freeipa-b353239e59a8eb32fb1ac66e29228dc95b74e4e6.tar.xz
freeipa-b353239e59a8eb32fb1ac66e29228dc95b74e4e6.zip
Fixed inconsistent status labels.
This patch modifies the status attributes in users, DNS zones, HBAC/sudo rules, HBAC test, and SELinux User Map to use the same label (i.e. Status) and values (i.e. Enabled/Disabled). The method to change the status will be modified separately. Ticket #2247
Diffstat (limited to 'install/ui/sudo.js')
-rw-r--r--install/ui/sudo.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/install/ui/sudo.js b/install/ui/sudo.js
index f1b64bd55..78af5fce1 100644
--- a/install/ui/sudo.js
+++ b/install/ui/sudo.js
@@ -41,9 +41,8 @@ IPA.sudo.rule_entity = function(spec) {
'cn',
{
name: 'ipaenabledflag',
- format: IPA.boolean_format({
- show_false: true
- })
+ label: IPA.messages.status.label,
+ format: IPA.boolean_status_format()
},
'description'
]
@@ -206,6 +205,7 @@ IPA.sudorule_details_facet = function(spec) {
{
type: 'enable',
name: 'ipaenabledflag',
+ label: IPA.messages.status.label,
priority: IPA.sudo.enable_priority,
widget: 'general.ipaenabledflag'
}
@@ -228,8 +228,8 @@ IPA.sudorule_details_facet = function(spec) {
type: 'enable',
name: 'ipaenabledflag',
options: [
- { value: 'TRUE', label: IPA.get_message('true') },
- { value: 'FALSE', label: IPA.get_message('false') }
+ { value: 'TRUE', label: IPA.messages.status.enabled },
+ { value: 'FALSE', label: IPA.messages.status.disabled }
]
}
]