mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
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
This commit is contained in:
committed by
Petr Voborník
parent
fef343ae8f
commit
b353239e59
@@ -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
|
||||
*/
|
||||
|
Reference in New Issue
Block a user