From 5b9ff7b7bf4f951afd36435487a46f8df3b6bf6f Mon Sep 17 00:00:00 2001 From: msquare Date: Fri, 23 Dec 2016 12:50:27 +0100 Subject: fix that free shifts become green --- includes/view/ShiftCalendarShiftRenderer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/view/ShiftCalendarShiftRenderer.php b/includes/view/ShiftCalendarShiftRenderer.php index 7aa79e07..294a5936 100644 --- a/includes/view/ShiftCalendarShiftRenderer.php +++ b/includes/view/ShiftCalendarShiftRenderer.php @@ -44,7 +44,6 @@ class ShiftCalendarShiftRenderer { private function classForSignupState(ShiftSignupState $shiftSignupState) { switch ($shiftSignupState->getState()) { - case ShiftSignupState::ADMIN: case ShiftSignupState::OCCUPIED: return 'success'; @@ -58,6 +57,7 @@ class ShiftCalendarShiftRenderer { case ShiftSignupState::COLLIDES: return 'warning'; + case ShiftSignupState::ADMIN: case ShiftSignupState::FREE: return 'danger'; } -- cgit v1.2.3-70-g09d2