Dan Anglin
ff676e8dc5
Replace the existing 'move' tview Page with a new board mode called 'Status Selection'. This mode is used to move cards between statuses. Resolves apollo/pelican#11
20 lines
447 B
Go
20 lines
447 B
Go
package ui
|
|
|
|
import "codeflow.dananglin.me.uk/apollo/pelican/internal/board"
|
|
|
|
type statusSelection struct {
|
|
cardID int
|
|
currentStatusID int
|
|
nextStatusID int
|
|
}
|
|
|
|
func (s statusSelection) moveCard(kanban board.Board) {
|
|
moveArgs := board.MoveToStatusArgs{
|
|
CardID: s.cardID,
|
|
CurrentStatusID: s.currentStatusID,
|
|
NextStatusID: s.nextStatusID,
|
|
}
|
|
|
|
// TODO: grab error for status line.
|
|
_ = kanban.MoveToStatus(moveArgs)
|
|
}
|