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
91e46dd4
Commit
91e46dd4
authored
Mar 06, 2017
by
Phil Hughes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed issue when dragging a issue to the bottom when count element is visible
parent
5bf2ab73
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
app/assets/javascripts/boards/components/board_list.js.es6
app/assets/javascripts/boards/components/board_list.js.es6
+5
-1
app/views/projects/boards/components/_board_list.html.haml
app/views/projects/boards/components/_board_list.html.haml
+2
-1
No files found.
app/assets/javascripts/boards/components/board_list.js.es6
View file @
91e46dd4
...
@@ -107,8 +107,12 @@ import boardCard from './board_card';
...
@@ -107,8 +107,12 @@ import boardCard from './board_card';
});
});
},
},
onUpdate: (e) => {
onUpdate: (e) => {
gl.issueBoards.BoardsStore.moveIssueInList(this.list, Store.moving.issue, e.oldIndex, e.newIndex, this.sortable.toArray());
const sortedArray = this.sortable.toArray().filter(id => id !== '-1');
gl.issueBoards.BoardsStore.moveIssueInList(this.list, Store.moving.issue, e.oldIndex, e.newIndex, sortedArray);
},
},
onMove(e) {
return !e.related.classList.contains('board-list-count');
}
});
});
this.sortable = Sortable.create(this.$refs.list, options);
this.sortable = Sortable.create(this.$refs.list, options);
...
...
app/views/projects/boards/components/_board_list.html.haml
View file @
91e46dd4
...
@@ -17,7 +17,8 @@
...
@@ -17,7 +17,8 @@
":root-path"
=>
"rootPath"
,
":root-path"
=>
"rootPath"
,
":disabled"
=>
"disabled"
,
":disabled"
=>
"disabled"
,
":key"
=>
"issue.id"
}
":key"
=>
"issue.id"
}
%li
.board-list-count.text-center
{
"v-if"
=>
"showCount"
}
%li
.board-list-count.text-center
{
"v-if"
=>
"showCount"
,
"data-issue-id"
=>
"-1"
}
=
icon
(
"spinner spin"
,
"v-show"
=>
"list.loadingMore"
)
=
icon
(
"spinner spin"
,
"v-show"
=>
"list.loadingMore"
)
%span
{
"v-if"
=>
"list.issues.length === list.issuesSize"
}
%span
{
"v-if"
=>
"list.issues.length === list.issuesSize"
}
Showing all issues
Showing all issues
...
...
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