summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPetr Vobornik <pvoborni@redhat.com>2011-12-20 15:08:03 +0100
committerEndi S. Dewata <edewata@redhat.com>2011-12-20 21:05:53 +0000
commit49e5555b11d0bee814bce807acacbfeb381379f1 (patch)
treedc6ae1a9811b194cedf3d6f7fb4328f038898cbe
parent689f7ba01ac42734f306d28ea809e7981783b21b (diff)
downloadfreeipa-49e5555b11d0bee814bce807acacbfeb381379f1.tar.gz
freeipa-49e5555b11d0bee814bce807acacbfeb381379f1.tar.xz
freeipa-49e5555b11d0bee814bce807acacbfeb381379f1.zip
Fixed labels in Sudo, HBAC rules
Fixed regression in labels introduced by refactoring #1515. https://fedorahosted.org/freeipa/ticket/1515
-rw-r--r--install/ui/hbac.js4
-rw-r--r--install/ui/sudo.js23
2 files changed, 8 insertions, 19 deletions
diff --git a/install/ui/hbac.js b/install/ui/hbac.js
index 3d2124e40..2a18396aa 100644
--- a/install/ui/hbac.js
+++ b/install/ui/hbac.js
@@ -412,8 +412,8 @@ IPA.hbacrule_details_facet = function(spec) {
name: 'rule',
radio_name: 'servicecategory',
options: [
- { 'value': 'all', 'label': IPA.messages.objects.hbacrule.any_host },
- { 'value': '', 'label': IPA.messages.objects.hbacrule.specified_hosts }
+ { 'value': 'all', 'label': IPA.messages.objects.hbacrule.any_service },
+ { 'value': '', 'label': IPA.messages.objects.hbacrule.specified_services }
],
tables: [
{ 'name': 'memberservice_hbacsvc' },
diff --git a/install/ui/sudo.js b/install/ui/sudo.js
index 991461822..aaa56ccb0 100644
--- a/install/ui/sudo.js
+++ b/install/ui/sudo.js
@@ -237,32 +237,21 @@ IPA.sudorule_details_facet = function(spec) {
// Options
//
- spec.fields.push.apply(spec.fields, [
+ spec.fields.push(
{
name: 'ipasudoopt',
widget: 'options.ipasudoopt'
}
- ]);
+ );
- spec.widgets.push.apply(spec.widgets, [
+ spec.widgets.push(
{
factory: IPA.sudo.options_section,
name: 'options',
label: IPA.messages.objects.sudorule.options,
facet: that
}
- ]);
-
-/*
- function options_section(){
- var section = IPA.sudo.options_section({
- name: 'options',
- label: IPA.messages.objects.sudorule.options,
- entity: that.entity,
- facet: that
- });
- return section;
- }*/
+ );
//
// Users
@@ -469,11 +458,11 @@ IPA.sudorule_details_facet = function(spec) {
options: [
{
value: 'all',
- label: IPA.messages.objects.sudorule.anyone
+ label: IPA.messages.objects.sudorule.any_command
},
{
value: '',
- label: IPA.messages.objects.sudorule.specified_users
+ label: IPA.messages.objects.sudorule.specified_commands
}
],
tables: [