Merge branch 'js-i18n-import-projects' into 'master'
Internationalisation of import_projects directory See merge request gitlab-org/gitlab-ce!27681
This commit is contained in:
commit
59fe5c1cbc
|
@ -1,3 +1,5 @@
|
|||
import { __ } from '~/locale';
|
||||
|
||||
export const namespaceSelectOptions = state => {
|
||||
const serializedNamespaces = state.namespaces.map(({ fullPath }) => ({
|
||||
id: fullPath,
|
||||
|
@ -5,9 +7,9 @@ export const namespaceSelectOptions = state => {
|
|||
}));
|
||||
|
||||
return [
|
||||
{ text: 'Groups', children: serializedNamespaces },
|
||||
{ text: __('Groups'), children: serializedNamespaces },
|
||||
{
|
||||
text: 'Users',
|
||||
text: __('Users'),
|
||||
children: [{ id: state.defaultTargetNamespace, text: state.defaultTargetNamespace }],
|
||||
},
|
||||
];
|
||||
|
|
Loading…
Reference in New Issue