From b353239e59a8eb32fb1ac66e29228dc95b74e4e6 Mon Sep 17 00:00:00 2001 From: Endi Sukma Dewata Date: Wed, 18 Jan 2012 21:54:41 -0600 Subject: 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 --- install/ui/widget.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'install/ui/widget.js') diff --git a/install/ui/widget.js b/install/ui/widget.js index 85d9282c..a7dd81e6 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 */ -- cgit