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
Jérome Perrin
gitlab-ce
Commits
7dd9b0dd
Commit
7dd9b0dd
authored
Aug 08, 2016
by
Phil Hughes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Resets the page & the scrolling when filters are updated
parent
23328425
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
2 deletions
+13
-2
app/assets/javascripts/boards/components/board.js.es6
app/assets/javascripts/boards/components/board.js.es6
+1
-0
app/assets/javascripts/boards/components/board_list.js.es6
app/assets/javascripts/boards/components/board_list.js.es6
+12
-2
No files found.
app/assets/javascripts/boards/components/board.js.es6
View file @
7dd9b0dd
...
@@ -19,6 +19,7 @@
...
@@ -19,6 +19,7 @@
},
},
'filters': {
'filters': {
handler: function () {
handler: function () {
this.list.page = 1;
this.list.getIssues(true);
this.list.getIssues(true);
},
},
deep: true
deep: true
...
...
app/assets/javascripts/boards/components/board_list.js.es6
View file @
7dd9b0dd
...
@@ -10,9 +10,19 @@
...
@@ -10,9 +10,19 @@
data: function () {
data: function () {
return {
return {
scrollOffset: 250,
scrollOffset: 250,
loadingMore: false
loadingMore: false,
filters: BoardsStore.state.filters
};
};
},
},
watch: {
'filters': {
handler: function () {
this.loadingMore = false;
this.$els.list.scrollTop = 0;
},
deep: true
}
},
methods: {
methods: {
listHeight: function () {
listHeight: function () {
return this.$els.list.getBoundingClientRect().height;
return this.$els.list.getBoundingClientRect().height;
...
@@ -46,7 +56,7 @@
...
@@ -46,7 +56,7 @@
// Remove the new dom element & let vue add the element
// Remove the new dom element & let vue add the element
e.item.parentNode.removeChild(e.item);
e.item.parentNode.removeChild(e.item);
BoardsStore.moveCardToList(fromListId, toListId, issueId);
BoardsStore.moveCardToList(fromListId, toListId, issueId);
}
}
}, gl.boardSortableDefaultOptions);
}, gl.boardSortableDefaultOptions);
...
...
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