Skip to content
Snippets Groups Projects
Commit 674844d0 authored by Phil Hughes's avatar Phil Hughes
Browse files

Fixed issue with backlog list not saving

Fixed issue when dragging cards
parent 4d9f76c1
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -78,7 +78,7 @@
disabled: this.disabled,
filter: '.board-list-count, .board-new-issue-form',
onStart: (e) => {
const card = this.$refs.issue[e.oldIndex];
const card = this.$refs.issue[e.oldIndex - 1];
 
Store.moving.issue = card.issue;
Store.moving.list = card.list;
Loading
Loading
@@ -89,7 +89,7 @@
gl.issueBoards.BoardsStore.moveIssueToList(Store.moving.list, this.list, Store.moving.issue);
},
onRemove: (e) => {
this.$refs.issue[e.oldIndex].$destroy(true);
this.$refs.issue[e.oldIndex - 1].$destroy(true);
}
});
 
Loading
Loading
Loading
Loading
@@ -19,9 +19,10 @@
methods: {
submit(e) {
e.preventDefault();
const labels = this.list.label ? [this.list.label] : [];
const issue = new ListIssue({
title: this.title,
labels: [this.list.label]
labels
});
 
this.list.newIssue(issue);
Loading
Loading
Loading
Loading
@@ -23,7 +23,7 @@ module Projects
list = project.board.lists.find(params[:list_id])
 
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
end
Loading
Loading
Loading
Loading
@@ -15,7 +15,7 @@
":title" => "issue.title" }
{{ issue.title }}
.card-footer
%span.card-number
%span.card-number{ "v-if" => "issue.id" }
= precede '#' do
{{ issue.id }}
%button.label.color-label.has-tooltip{ "v-for" => "label in issue.labels",
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment