diff options
author | Endi Sukma Dewata <edewata@redhat.com> | 2012-01-18 21:54:41 -0600 |
---|---|---|
committer | Petr VobornÃk <pvoborni@redhat.com> | 2012-01-23 15:38:41 +0100 |
commit | b353239e59a8eb32fb1ac66e29228dc95b74e4e6 (patch) | |
tree | 09093bfd4ae3a5954c680998000635c15165c91f /install/ui/widget.js | |
parent | fef343ae8f501aa67d4c746d9c7103d797fd6be2 (diff) | |
download | freeipa-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/widget.js')
-rw-r--r-- | install/ui/widget.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/install/ui/widget.js b/install/ui/widget.js index 85d9282c2..a7dd81e67 100644 --- a/install/ui/widget.js +++ b/install/ui/widget.js @@ -1019,6 +1019,19 @@ IPA.boolean_format = function(spec) { return that; }; +IPA.boolean_status_format = function(spec) { + + spec = spec || {}; + + var that = IPA.boolean_format(spec); + + that.true_value = spec.true_value || IPA.messages.status.enabled; + that.false_value = spec.false_value || IPA.messages.status.disabled; + that.show_false = true; + + return that; +}; + /* The entity name must be set in the spec either directly or via entity.name */ |