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
674844d0
Commit
674844d0
authored
Oct 03, 2016
by
Phil Hughes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed issue with backlog list not saving
Fixed issue when dragging cards
parent
4d9f76c1
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
5 deletions
+6
-5
app/assets/javascripts/boards/components/board_list.js.es6
app/assets/javascripts/boards/components/board_list.js.es6
+2
-2
app/assets/javascripts/boards/components/board_new_issue.js.es6
...sets/javascripts/boards/components/board_new_issue.js.es6
+2
-1
app/controllers/projects/boards/issues_controller.rb
app/controllers/projects/boards/issues_controller.rb
+1
-1
app/views/projects/boards/components/_card.html.haml
app/views/projects/boards/components/_card.html.haml
+1
-1
No files found.
app/assets/javascripts/boards/components/board_list.js.es6
View file @
674844d0
...
@@ -78,7 +78,7 @@
...
@@ -78,7 +78,7 @@
disabled: this.disabled,
disabled: this.disabled,
filter: '.board-list-count, .board-new-issue-form',
filter: '.board-list-count, .board-new-issue-form',
onStart: (e) => {
onStart: (e) => {
const card = this.$refs.issue[e.oldIndex];
const card = this.$refs.issue[e.oldIndex
- 1
];
Store.moving.issue = card.issue;
Store.moving.issue = card.issue;
Store.moving.list = card.list;
Store.moving.list = card.list;
...
@@ -89,7 +89,7 @@
...
@@ -89,7 +89,7 @@
gl.issueBoards.BoardsStore.moveIssueToList(Store.moving.list, this.list, Store.moving.issue);
gl.issueBoards.BoardsStore.moveIssueToList(Store.moving.list, this.list, Store.moving.issue);
},
},
onRemove: (e) => {
onRemove: (e) => {
this.$refs.issue[e.oldIndex].$destroy(true);
this.$refs.issue[e.oldIndex
- 1
].$destroy(true);
}
}
});
});
...
...
app/assets/javascripts/boards/components/board_new_issue.js.es6
View file @
674844d0
...
@@ -19,9 +19,10 @@
...
@@ -19,9 +19,10 @@
methods: {
methods: {
submit(e) {
submit(e) {
e.preventDefault();
e.preventDefault();
const labels = this.list.label ? [this.list.label] : [];
const issue = new ListIssue({
const issue = new ListIssue({
title: this.title,
title: this.title,
labels
: [this.list.label]
labels
});
});
this.list.newIssue(issue);
this.list.newIssue(issue);
...
...
app/controllers/projects/boards/issues_controller.rb
View file @
674844d0
...
@@ -23,7 +23,7 @@ module Projects
...
@@ -23,7 +23,7 @@ module Projects
list
=
project
.
board
.
lists
.
find
(
params
[
:list_id
])
list
=
project
.
board
.
lists
.
find
(
params
[
:list_id
])
issue
=
Issues
::
CreateService
.
new
(
project
,
current_user
,
issue_params
.
merge
(
request:
request
)).
execute
issue
=
Issues
::
CreateService
.
new
(
project
,
current_user
,
issue_params
.
merge
(
request:
request
)).
execute
issue
.
labels
<<
list
.
label
issue
.
labels
<<
list
.
label
if
list
.
label
render
json:
issue
.
to_json
render
json:
issue
.
to_json
end
end
...
...
app/views/projects/boards/components/_card.html.haml
View file @
674844d0
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
":title"
=>
"issue.title"
}
":title"
=>
"issue.title"
}
{{ issue.title }}
{{ issue.title }}
.card-footer
.card-footer
%span
.card-number
%span
.card-number
{
"v-if"
=>
"issue.id"
}
=
precede
'#'
do
=
precede
'#'
do
{{ issue.id }}
{{ issue.id }}
%button
.label.color-label.has-tooltip
{
"v-for"
=>
"label in issue.labels"
,
%button
.label.color-label.has-tooltip
{
"v-for"
=>
"label in issue.labels"
,
...
...
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