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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
c24d849f
Commit
c24d849f
authored
Mar 09, 2017
by
Phil Hughes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed milestone select not loading because of glDropdown stuff...
Fixed eslint
parent
0082cb20
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
33 deletions
+2
-33
app/assets/javascripts/boards/boards_bundle.js
app/assets/javascripts/boards/boards_bundle.js
+2
-3
app/assets/javascripts/boards/components/boards_selector.js
app/assets/javascripts/boards/components/boards_selector.js
+0
-30
No files found.
app/assets/javascripts/boards/boards_bundle.js
View file @
c24d849f
...
@@ -64,9 +64,8 @@ $(() => {
...
@@ -64,9 +64,8 @@ $(() => {
created
()
{
created
()
{
if
(
this
.
milestoneTitle
)
{
if
(
this
.
milestoneTitle
)
{
const
milestoneTitleParam
=
`milestone_title=
${
this
.
milestoneTitle
}
`
;
const
milestoneTitleParam
=
`milestone_title=
${
this
.
milestoneTitle
}
`
;
let
splitPath
=
Store
.
filter
.
path
.
split
(
'
&
'
).
filter
((
param
)
=>
{
let
splitPath
=
Store
.
filter
.
path
.
split
(
'
&
'
)
return
param
.
match
(
/^milestone_title=
(
.*
)
$/g
)
===
null
;
.
filter
(
param
=>
param
.
match
(
/^milestone_title=
(
.*
)
$/g
)
===
null
);
});
splitPath
=
[
milestoneTitleParam
].
concat
(
splitPath
);
splitPath
=
[
milestoneTitleParam
].
concat
(
splitPath
);
Store
.
filter
.
path
=
splitPath
.
join
(
'
&
'
);
Store
.
filter
.
path
=
splitPath
.
join
(
'
&
'
);
...
...
app/assets/javascripts/boards/components/boards_selector.js
View file @
c24d849f
...
@@ -42,12 +42,6 @@ require('./board_new_form');
...
@@ -42,12 +42,6 @@ require('./board_new_form');
this
.
loadBoards
(
false
);
this
.
loadBoards
(
false
);
}
}
},
},
board
:
{
handler
()
{
this
.
updateMilestoneFilterDropdown
();
},
deep
:
true
,
},
},
},
computed
:
{
computed
:
{
currentPage
()
{
currentPage
()
{
...
@@ -94,33 +88,9 @@ require('./board_new_form');
...
@@ -94,33 +88,9 @@ require('./board_new_form');
});
});
}
}
},
},
updateMilestoneFilterDropdown
()
{
const
$milestoneDropdownToggle
=
$
(
'
.js-milestone-select
'
);
const
glDropdown
=
$milestoneDropdownToggle
.
data
(
'
glDropdown
'
);
const
$milestoneDropdown
=
$
(
'
.dropdown-menu-milestone
'
);
const
hideElements
=
this
.
board
.
milestone
===
undefined
||
this
.
board
.
milestone_id
===
null
;
$
(
'
#milestone_title
'
).
val
(
this
.
board
.
milestone
?
this
.
board
.
milestone
.
title
:
''
);
if
(
glDropdown
.
fullData
)
{
glDropdown
.
parseData
(
glDropdown
.
fullData
);
}
$milestoneDropdown
.
find
(
'
.dropdown-input, .dropdown-footer-list
'
)
.
toggle
(
hideElements
);
$milestoneDropdown
.
find
(
'
.js-milestone-footer-content
'
).
toggle
(
!
hideElements
);
$milestoneDropdown
.
find
(
'
.dropdown-content li
'
).
show
()
.
filter
((
i
,
el
)
=>
$
(
el
).
find
(
'
.is-active
'
).
length
===
0
)
.
toggle
(
hideElements
);
$
(
'
.js-milestone-select .dropdown-toggle-text
'
)
.
text
(
hideElements
?
'
Milestone
'
:
this
.
board
.
milestone
.
title
)
.
toggleClass
(
'
is-default
'
,
hideElements
);
},
},
},
created
()
{
created
()
{
this
.
state
.
currentBoard
=
this
.
currentBoard
;
this
.
state
.
currentBoard
=
this
.
currentBoard
;
this
.
updateMilestoneFilterDropdown
();
},
},
});
});
})();
})();
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