@@ -47,9 +47,6 @@ type Model struct {
|
||||
priorityIssueID string
|
||||
choosingType bool // true while choosing a type
|
||||
typeIssueID string
|
||||
editingAssignee bool // true while editing assignee
|
||||
assigneeInput textinput.Model
|
||||
assigneeIssueID string
|
||||
addingComment bool // true while adding a comment
|
||||
commentInput textarea.Model
|
||||
commentIssueID string
|
||||
@@ -91,11 +88,6 @@ func NewDashboard(app *app.App, feedbackChan chan models.ValidationFeedback, qui
|
||||
createTi.CharLimit = 256
|
||||
m.createTitleInput = createTi
|
||||
|
||||
assigneeTi := textinput.New()
|
||||
assigneeTi.Placeholder = "Assignee (e.g. Me, username)..."
|
||||
assigneeTi.CharLimit = 128
|
||||
m.assigneeInput = assigneeTi
|
||||
|
||||
descTa := textarea.New()
|
||||
descTa.Placeholder = "Issue description..."
|
||||
descTa.SetWidth(56)
|
||||
@@ -185,13 +177,6 @@ func (m *Model) startChooseType(selected ListIssue) {
|
||||
m.typeIssueID = selected.ID
|
||||
}
|
||||
|
||||
func (m *Model) startEditAssignee(selected ListIssue) {
|
||||
m.editingAssignee = true
|
||||
m.assigneeIssueID = selected.ID
|
||||
m.assigneeInput.SetValue(selected.Issue.Assignee)
|
||||
m.assigneeInput.CursorEnd()
|
||||
}
|
||||
|
||||
func (m *Model) Init() tea.Cmd {
|
||||
return m.listenForValidation()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user