summaryrefslogtreecommitdiffstats
path: root/install/ui/widget.js
diff options
context:
space:
mode:
Diffstat (limited to 'install/ui/widget.js')
-rw-r--r--install/ui/widget.js13
1 files changed, 13 insertions, 0 deletions
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
*/