Skip to content

Commit

Permalink
added undo for proposal cancel
Browse files Browse the repository at this point in the history
  • Loading branch information
iambibhas committed Sep 21, 2020
1 parent 8dd992c commit b7465f0
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions funnel/models/proposal.py
Original file line number Diff line number Diff line change
Expand Up @@ -423,6 +423,17 @@ def reject(self):
def cancel(self):
pass

@with_roles(call={'creator'})
@state.transition(
state.CANCELLED,
state.DRAFT,
title=__("Undo Cancel"),
message=__("This proposal has been made a draft"),
type='success',
)
def undo_cancel(self):
pass

@with_roles(call={'project_editor', 'reviewer'})
@state.transition(
state.SUBMITTED,
Expand Down

0 comments on commit b7465f0

Please sign in to comment.