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
c216b25d
Commit
c216b25d
authored
Nov 01, 2018
by
Heinrich Lee Yu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Prettify JS
parent
911d8356
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
9 deletions
+15
-9
app/assets/javascripts/boards/components/project_select.vue
app/assets/javascripts/boards/components/project_select.vue
+13
-8
app/assets/javascripts/project_select.js
app/assets/javascripts/project_select.js
+2
-1
No files found.
app/assets/javascripts/boards/components/project_select.vue
View file @
c216b25d
...
@@ -48,14 +48,19 @@ export default {
...
@@ -48,14 +48,19 @@ export default {
selectable
:
true
,
selectable
:
true
,
data
:
(
term
,
callback
)
=>
{
data
:
(
term
,
callback
)
=>
{
this
.
loading
=
true
;
this
.
loading
=
true
;
return
Api
.
groupProjects
(
this
.
groupId
,
term
,
{
return
Api
.
groupProjects
(
this
.
groupId
,
term
,
{
with_issues_enabled
:
true
,
with_issues_enabled
:
true
,
with_shared
:
false
,
with_shared
:
false
,
include_subgroups
:
true
include_subgroups
:
true
,
},
projects
=>
{
},
projects
=>
{
this
.
loading
=
false
;
this
.
loading
=
false
;
callback
(
projects
);
callback
(
projects
);
});
},
);
},
},
renderRow
(
project
)
{
renderRow
(
project
)
{
return
`
return
`
...
...
app/assets/javascripts/project_select.js
View file @
c216b25d
...
@@ -14,7 +14,8 @@ export default function projectSelect() {
...
@@ -14,7 +14,8 @@ export default function projectSelect() {
this
.
orderBy
=
$
(
select
).
data
(
'
orderBy
'
)
||
'
id
'
;
this
.
orderBy
=
$
(
select
).
data
(
'
orderBy
'
)
||
'
id
'
;
this
.
withIssuesEnabled
=
$
(
select
).
data
(
'
withIssuesEnabled
'
);
this
.
withIssuesEnabled
=
$
(
select
).
data
(
'
withIssuesEnabled
'
);
this
.
withMergeRequestsEnabled
=
$
(
select
).
data
(
'
withMergeRequestsEnabled
'
);
this
.
withMergeRequestsEnabled
=
$
(
select
).
data
(
'
withMergeRequestsEnabled
'
);
this
.
withShared
=
$
(
select
).
data
(
'
withShared
'
)
===
undefined
?
true
:
$
(
select
).
data
(
'
withShared
'
);
this
.
withShared
=
$
(
select
).
data
(
'
withShared
'
)
===
undefined
?
true
:
$
(
select
).
data
(
'
withShared
'
);
this
.
includeProjectsInSubgroups
=
$
(
select
).
data
(
'
includeProjectsInSubgroups
'
)
||
false
;
this
.
includeProjectsInSubgroups
=
$
(
select
).
data
(
'
includeProjectsInSubgroups
'
)
||
false
;
this
.
allowClear
=
$
(
select
).
data
(
'
allowClear
'
)
||
false
;
this
.
allowClear
=
$
(
select
).
data
(
'
allowClear
'
)
||
false
;
...
...
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