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
Boxiang Sun
gitlab-ce
Commits
e9c66be1
Commit
e9c66be1
authored
Nov 09, 2016
by
Phil Hughes
Committed by
Fatih Acet
Nov 10, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed how lists get sorted
parent
948b4828
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
2 deletions
+6
-2
app/assets/javascripts/boards/boards_bundle.js.es6
app/assets/javascripts/boards/boards_bundle.js.es6
+2
-0
app/assets/javascripts/boards/components/new_list_dropdown.js.es6
...ts/javascripts/boards/components/new_list_dropdown.js.es6
+2
-0
app/assets/javascripts/boards/stores/boards_store.js.es6
app/assets/javascripts/boards/stores/boards_store.js.es6
+2
-2
No files found.
app/assets/javascripts/boards/boards_bundle.js.es6
View file @
e9c66be1
...
@@ -61,6 +61,8 @@ $(() => {
...
@@ -61,6 +61,8 @@ $(() => {
}
}
});
});
this.state.lists = _.sortBy(this.state.lists, 'position');
Store.addBlankState();
Store.addBlankState();
this.loading = false;
this.loading = false;
});
});
...
...
app/assets/javascripts/boards/components/new_list_dropdown.js.es6
View file @
e9c66be1
...
@@ -65,6 +65,8 @@
...
@@ -65,6 +65,8 @@
color: label.color
color: label.color
}
}
});
});
Store.state.lists = _.sortBy(Store.state.lists, 'position');
}
}
}
}
});
});
...
...
app/assets/javascripts/boards/stores/boards_store.js.es6
View file @
e9c66be1
...
@@ -27,8 +27,6 @@
...
@@ -27,8 +27,6 @@
const list = new List(listObj);
const list = new List(listObj);
this.state.lists.push(list);
this.state.lists.push(list);
this.state.lists = _.sortBy(this.state.lists, 'position');
return list;
return list;
},
},
new (listObj) {
new (listObj) {
...
@@ -62,6 +60,8 @@
...
@@ -62,6 +60,8 @@
title: 'Welcome to your Issue Board!',
title: 'Welcome to your Issue Board!',
position: 0
position: 0
});
});
this.state.lists = _.sortBy(this.state.lists, 'position');
},
},
removeBlankState () {
removeBlankState () {
this.removeList('blank');
this.removeList('blank');
...
...
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