mirror of
https://github.com/CachetHQ/Cachet.git
synced 2025-01-17 05:28:18 +01:00
Merge pull request #3031 from farhank3389/2.4
forward button now shows properly.
This commit is contained in:
commit
db8874c5ad
@ -96,7 +96,7 @@ class StatusPageController extends AbstractApiController
|
||||
} else {
|
||||
$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;
|
||||
$previousDate = $date->copy()->subDays($appIncidentDays)->toDateString();
|
||||
$nextDate = $date->copy()->addDays($appIncidentDays)->toDateString();
|
||||
|
Loading…
x
Reference in New Issue
Block a user