fix colors of shifts for admins
This commit is contained in:
parent
8f6bd547d3
commit
d0388e8344
|
@ -170,6 +170,15 @@ class ShiftCalendarShiftRenderer
|
||||||
$angeltype,
|
$angeltype,
|
||||||
$shift_entries
|
$shift_entries
|
||||||
);
|
);
|
||||||
|
$shift_can_signup = Shift_signup_allowed_angel(
|
||||||
|
$user,
|
||||||
|
$shift,
|
||||||
|
$angeltype,
|
||||||
|
null,
|
||||||
|
null,
|
||||||
|
$angeltype,
|
||||||
|
$shift_entries
|
||||||
|
);
|
||||||
$freeEntriesCount = $shift_signup_state->getFreeEntries();
|
$freeEntriesCount = $shift_signup_state->getFreeEntries();
|
||||||
$inner_text = _e('%d helper needed', '%d helpers needed', $freeEntriesCount, [$freeEntriesCount]);
|
$inner_text = _e('%d helper needed', '%d helpers needed', $freeEntriesCount, [$freeEntriesCount]);
|
||||||
|
|
||||||
|
@ -216,7 +225,7 @@ class ShiftCalendarShiftRenderer
|
||||||
$shifts_row .= join(', ', $entry_list);
|
$shifts_row .= join(', ', $entry_list);
|
||||||
$shifts_row .= '</li>';
|
$shifts_row .= '</li>';
|
||||||
return [
|
return [
|
||||||
$shift_signup_state,
|
$shift_can_signup,
|
||||||
$shifts_row,
|
$shifts_row,
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue