mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-29 17:00:59 +01:00
c020f027bb
Summary: Depends on D20274. Ref T10578. This is en route to an ordering by points, it's just a simpler half-step on the way there. Allow columns to be sorted by creation date, so the newest tasks rise to the top. In this ordering you can never reposition cards, since editing a creation date by dragging makes no sense. This will be true of the "points" ordering too (although we could imagine doing something like prompting the user, some day). Test Plan: Viewed boards by "natural" (allows reordering both when dragging within and between columns), "priority" (reorder only within columns), and "creation date" (reorder never). Dragged cards around between and within columns, got apparently sensible behavior. Reviewers: amckinley Reviewed By: amckinley Maniphest Tasks: T10578 Differential Revision: https://secure.phabricator.com/D20275
27 lines
378 B
JavaScript
27 lines
378 B
JavaScript
/**
|
|
* @provides javelin-workboard-order-template
|
|
* @requires javelin-install
|
|
* @javelin
|
|
*/
|
|
|
|
JX.install('WorkboardOrderTemplate', {
|
|
|
|
construct: function(order) {
|
|
this._orderKey = order;
|
|
},
|
|
|
|
properties: {
|
|
hasHeaders: false,
|
|
canReorder: false
|
|
},
|
|
|
|
members: {
|
|
_orderKey: null,
|
|
|
|
getOrderKey: function() {
|
|
return this._orderKey;
|
|
}
|
|
|
|
}
|
|
|
|
});
|