mirror of
https://github.com/grocy/grocy.git
synced 2025-08-14 17:54:40 +00:00
Allow possibility to choose custom homepage
This commit is contained in:
@@ -41,21 +41,24 @@ class SystemController extends BaseController
|
||||
|
||||
private function GetEntryPageRelative()
|
||||
{
|
||||
$entryPage = '/stockoverview';
|
||||
|
||||
if (!GROCY_FEATURE_FLAG_STOCK)
|
||||
{
|
||||
$entryPage = '/choresoverview';
|
||||
switch (GROCY_ENTRY_PAGE) {
|
||||
default:
|
||||
case 'stock':
|
||||
return '/stockoverview';
|
||||
case 'shoppinglist':
|
||||
return '/shoppinglist';
|
||||
case 'recipes':
|
||||
return '/recipes';
|
||||
case 'chores':
|
||||
return '/choresoverview';
|
||||
case 'tasks':
|
||||
return '/tasks';
|
||||
case 'batteries':
|
||||
return '/batteriesoverview';
|
||||
case 'equipment':
|
||||
return '/equipment';
|
||||
case 'calendar':
|
||||
return '/calendar';
|
||||
}
|
||||
if (!GROCY_FEATURE_FLAG_CHORES)
|
||||
{
|
||||
$entryPage = '/batteriesoverview';
|
||||
}
|
||||
if (!GROCY_FEATURE_FLAG_BATTERIES)
|
||||
{
|
||||
$entryPage = '/equipment';
|
||||
}
|
||||
|
||||
return $entryPage;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user