diff options
author | msquare <msquare@notrademark.de> | 2016-11-14 17:40:24 +0100 |
---|---|---|
committer | msquare <msquare@notrademark.de> | 2016-11-14 17:40:24 +0100 |
commit | 0ab9f4f9886ca61fe0711ba1ee551394ceda877a (patch) | |
tree | bc49135f57cbc1307e0e7594e2ec957e021a342d /includes/view/ShiftCalendarShiftRenderer.php | |
parent | 1a3b4e2a334c57cc403be1d8e21fd8e162d9df5c (diff) |
fix shift ended recognition and displayed time range end
Diffstat (limited to 'includes/view/ShiftCalendarShiftRenderer.php')
-rw-r--r-- | includes/view/ShiftCalendarShiftRenderer.php | 10 |
1 files changed, 1 insertions, 9 deletions
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 |