Approval should warn with a pop-up

* Making it so that approving a task requires a confirmation.

Change-Id: Ic82a9be97c167dc5d33ae6630381a5c9af27b215
This commit is contained in:
adrian-turjak 2017-05-24 20:40:06 +12:00
parent 901a0d7a2e
commit 3321bf3fb4
1 changed files with 2 additions and 0 deletions

View File

@ -57,6 +57,7 @@ class CancelTask(tables.DeleteAction):
class ApproveTask(tables.BatchAction):
name = "approve"
help_text = _("This will approve all of the selected tasks.")
action_type = "danger"
@staticmethod
def action_present(count):
@ -157,6 +158,7 @@ class RevalidateTask(tables.BatchAction):
class ReapproveTask(ApproveTask):
name = "approve"
help_text = _("This will approve all of the selected tasks.")
action_type = "danger"
@staticmethod
def action_present(count):