From 1b3032d22146ad22b4a95ce4a459403f3633bf85 Mon Sep 17 00:00:00 2001
From: JediKev <kevin@enhancesoft.com>
Date: Thu, 28 Sep 2017 17:07:59 -0500
Subject: [PATCH] issue: Task Action Button Styling

This addresses an issue where the Delete Task Action Button had the wrong
classes which gave it the wrong styling. This corrects the class to make
the Delete button look like the other buttons and still have the red
background on hover.
---
 include/staff/templates/task-view.tmpl.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/staff/templates/task-view.tmpl.php b/include/staff/templates/task-view.tmpl.php
index 0fe384b58..fdfb47088 100644
--- a/include/staff/templates/task-view.tmpl.php
+++ b/include/staff/templates/task-view.tmpl.php
@@ -78,7 +78,7 @@ if ($role->hasPerm(Task::PERM_DELETE)) {
             'delete' => array(
                 'href' => sprintf('#tasks/%d/delete', $task->getId()),
                 'icon' => 'icon-trash',
-                'class' => 'red button',
+                'class' => (strpos($_SERVER['REQUEST_URI'], 'tickets.php') !== false) ? 'danger' : 'red button',
                 'label' => __('Delete'),
                 'redirect' => 'tasks.php'
             ));
-- 
GitLab