diff options
author | Frederic Guillot <fred@kanboard.net> | 2016-02-20 18:11:08 -0500 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2016-02-20 18:11:08 -0500 |
commit | 5fe68d4d499a8496229763369b50d71c9fa16200 (patch) | |
tree | 95bc4160b1da2fa79ca5ec1c0af4baab7cec1300 /app/Api | |
parent | da7259819bb6c3947317b39fc2a10626471bfca3 (diff) |
Add drag and drop to change swimlane positions
Diffstat (limited to 'app/Api')
-rw-r--r-- | app/Api/Swimlane.php | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/app/Api/Swimlane.php b/app/Api/Swimlane.php index 84c699ab..03a2819f 100644 --- a/app/Api/Swimlane.php +++ b/app/Api/Swimlane.php @@ -48,9 +48,11 @@ class Swimlane extends \Kanboard\Core\Base public function updateSwimlane($swimlane_id, $name, $description = null) { $values = array('id' => $swimlane_id, 'name' => $name); + if (!is_null($description)) { $values['description'] = $description; } + return $this->swimlane->update($values); } @@ -69,13 +71,8 @@ class Swimlane extends \Kanboard\Core\Base return $this->swimlane->enable($project_id, $swimlane_id); } - public function moveSwimlaneUp($project_id, $swimlane_id) - { - return $this->swimlane->moveUp($project_id, $swimlane_id); - } - - public function moveSwimlaneDown($project_id, $swimlane_id) + public function changeSwimlanePosition($project_id, $swimlane_id, $position) { - return $this->swimlane->moveDown($project_id, $swimlane_id); + return $this->swimlane->changePosition($project_id, $swimlane_id, $position); } } |