Support meal plan as default page

This commit is contained in:
Lewis Juggins 2019-09-25 11:45:38 +01:00 committed by GitHub
parent 04808eaa66
commit 9b5939f0d4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -85,6 +85,11 @@ class SystemController extends BaseController
if ($entryPage === 'calendar' && constant('GROCY_FEATURE_FLAG_CALENDAR')) {
return '/calendar';
}
// Meal Plan
if ($entryPage === 'mealplan' && constant('GROCY_FEATURE_FLAG_MEALPLAN')) {
return '/mealplan';
}
return '/about';
}