forward button now shows properly. https://github.com/CachetHQ/Cachet/issues/3030
This commit is contained in:
@@ -96,7 +96,7 @@ class StatusPageController extends AbstractApiController
|
|||||||
} else {
|
} else {
|
||||||
$date = Date::now();
|
$date = Date::now();
|
||||||
|
|
||||||
$canPageForward = (bool) $startDate->gt($date);
|
$canPageForward = (bool) $startDate->lt($date->sub('1 day'));
|
||||||
$canPageBackward = Incident::where('occurred_at', '<', $date->format('Y-m-d'))->count() > 0;
|
$canPageBackward = Incident::where('occurred_at', '<', $date->format('Y-m-d'))->count() > 0;
|
||||||
$previousDate = $date->copy()->subDays($appIncidentDays)->toDateString();
|
$previousDate = $date->copy()->subDays($appIncidentDays)->toDateString();
|
||||||
$nextDate = $date->copy()->addDays($appIncidentDays)->toDateString();
|
$nextDate = $date->copy()->addDays($appIncidentDays)->toDateString();
|
||||||
|
|||||||
Reference in New Issue
Block a user