Skip to content

Commit

Permalink
ui: issue reload when deleting task or attachment
Browse files Browse the repository at this point in the history
  • Loading branch information
psyomn committed Oct 13, 2014
1 parent a6c7936 commit 83fbf5f
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions lib/wlog/ui/issue_ui.rb
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,9 @@ def time(rest)
end

# Print the description of the issue
def describe_issue; puts @issue end
def describe_issue;
puts @issue
end

# This needs updating
def print_help
Expand Down Expand Up @@ -139,8 +141,11 @@ def new_entry
def delete_entry(cmd_a)
case cmd_a[0]
when /t/, /task/ then LogEntry.delete(cmd_a[1])
when /a/, /attachment/ then Attachment.delete(cmd_a[2])
when /a/, /attachment/ then Attachment.delete(cmd_a[1])
end
# If something gets deleted, we need to reload the issue so that the
# relations are ok.
@issue.reload
end

# Concatenate an aggregate description to a previous item
Expand Down

0 comments on commit 83fbf5f

Please sign in to comment.