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
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
Show 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 @@
},
'filters': {
handler: function () {
this.list.page = 1;
this.list.getIssues(true);
},
deep: true
...
...
app/assets/javascripts/boards/components/board_list.js.es6
View file @
7dd9b0dd
...
...
@@ -10,9 +10,19 @@
data: function () {
return {
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: {
listHeight: function () {
return this.$els.list.getBoundingClientRect().height;
...
...
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