WebUI: Change group name from 'normal' to 'Non-POSIX'

It will correspond with CLI and will be more self-explanatory.

https://fedorahosted.org/freeipa/ticket/6334

Reviewed-By: Stanislav Laznicka <slaznick@redhat.com>
This commit is contained in:
Pavel Vomacka
2016-09-21 13:20:21 +02:00
committed by Martin Basti
parent 4e880f7ce9
commit 0e6d6e4032
3 changed files with 7 additions and 9 deletions
+5 -7
View File
@@ -62,7 +62,7 @@ return {
name: 'external',
param: 'objectclass',
label: '@i18n:objects.group.type',
default_label: '@i18n:objects.group.normal',
default_label: '@i18n:objects.group.nonposix',
value_map: {
ipaexternalgroup: '@i18n:objects.group.external',
posixgroup: '@i18n:objects.group.posix'
@@ -174,8 +174,8 @@ return {
default_value: 'posix',
options: [
{
value: 'normal',
label: '@i18n:objects.group.normal'
value: 'nonposix',
label: '@i18n:objects.group.nonposix'
},
{
value: 'external',
@@ -224,10 +224,8 @@ IPA.group_adder_dialog = function(spec) {
var type_field = that.fields.get_field('type');
var type = type_field.save()[0];
if (type === 'normal') {
command.set_option('nonposix', true);
} else if (type === 'external') {
command.set_option('external', true);
if (type === 'nonposix' || type === 'external') {
command.set_option(type, true);
}
return command;
+1 -1
View File
@@ -373,7 +373,7 @@
"external": "External",
"make_external": "Change to external group",
"make_posix": "Change to POSIX group",
"normal": "Normal",
"nonposix": "Non-POSIX",
"posix": "POSIX",
"type": "Group Type"
},