From 0ab9f4f9886ca61fe0711ba1ee551394ceda877a Mon Sep 17 00:00:00 2001 From: msquare Date: Mon, 14 Nov 2016 17:40:24 +0100 Subject: fix shift ended recognition and displayed time range end --- includes/view/ShiftCalendarShiftRenderer.php | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'includes/view/ShiftCalendarShiftRenderer.php') diff --git a/includes/view/ShiftCalendarShiftRenderer.php b/includes/view/ShiftCalendarShiftRenderer.php index 86a6f91d..7aa79e07 100644 --- a/includes/view/ShiftCalendarShiftRenderer.php +++ b/includes/view/ShiftCalendarShiftRenderer.php @@ -44,6 +44,7 @@ class ShiftCalendarShiftRenderer { private function classForSignupState(ShiftSignupState $shiftSignupState) { switch ($shiftSignupState->getState()) { + case ShiftSignupState::ADMIN: case ShiftSignupState::OCCUPIED: return 'success'; @@ -57,7 +58,6 @@ class ShiftCalendarShiftRenderer { case ShiftSignupState::COLLIDES: return 'warning'; - case ShiftSignupState::ADMIN: case ShiftSignupState::FREE: return 'danger'; } @@ -176,14 +176,6 @@ class ShiftCalendarShiftRenderer { $header_buttons ]); } - - /** - * Does the shift collide with the user's shifts - */ - private function collides() { - // TODO - return false; - } } ?> \ No newline at end of file -- cgit v1.3.1