Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
gitlab-ce
Commits
cf61ea1d
Commit
cf61ea1d
authored
Feb 15, 2019
by
Luke Bennett
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix select2 import for project import app namespace select
parent
813df901
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
0 deletions
+14
-0
app/assets/javascripts/vue_shared/components/select2_select.vue
...sets/javascripts/vue_shared/components/select2_select.vue
+1
-0
spec/javascripts/import_projects/components/provider_repo_table_row_spec.js
...mport_projects/components/provider_repo_table_row_spec.js
+13
-0
No files found.
app/assets/javascripts/vue_shared/components/select2_select.vue
View file @
cf61ea1d
<
script
>
<
script
>
import
$
from
'
jquery
'
;
import
$
from
'
jquery
'
;
import
'
select2/select2
'
;
export
default
{
export
default
{
name
:
'
Select2Select
'
,
name
:
'
Select2Select
'
,
...
...
spec/javascripts/import_projects/components/provider_repo_table_row_spec.js
View file @
cf61ea1d
...
@@ -49,6 +49,19 @@ describe('ProviderRepoTableRow', () => {
...
@@ -49,6 +49,19 @@ describe('ProviderRepoTableRow', () => {
expect
(
vm
.
$el
.
querySelector
(
'
.js-import-button
'
)).
not
.
toBeNull
();
expect
(
vm
.
$el
.
querySelector
(
'
.js-import-button
'
)).
not
.
toBeNull
();
});
});
it
(
'
renders a select2 namespace select
'
,
()
=>
{
vm
=
createComponent
();
const
dropdownTrigger
=
vm
.
$el
.
querySelector
(
'
.js-namespace-select
'
);
expect
(
dropdownTrigger
).
not
.
toBeNull
();
expect
(
dropdownTrigger
.
classList
.
contains
(
'
select2-container
'
)).
toBe
(
true
);
dropdownTrigger
.
click
();
expect
(
vm
.
$el
.
querySelector
(
'
.select2-drop
'
)).
not
.
toBeNull
();
});
it
(
'
imports repo when clicking import button
'
,
done
=>
{
it
(
'
imports repo when clicking import button
'
,
done
=>
{
const
importPath
=
'
/import-path
'
;
const
importPath
=
'
/import-path
'
;
const
defaultTargetNamespace
=
'
user
'
;
const
defaultTargetNamespace
=
'
user
'
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment