mirror of
https://github.com/grocy/grocy.git
synced 2026-04-07 05:16:15 +02:00
Add option to disable automatic switching to compact shoppinglist view on mobile devices
This commit is contained in:
parent
06fe308f31
commit
9ba8cbac99
|
|
@ -97,6 +97,7 @@ DefaultUserSetting('scan_mode_purchase_enabled', false);
|
||||||
# Shopping list settings
|
# Shopping list settings
|
||||||
DefaultUserSetting('shopping_list_to_stock_workflow_auto_submit_when_prefilled', false); // Automatically do the booking using the last price and the amount of the shopping list item, if the product has "Default best before days" set
|
DefaultUserSetting('shopping_list_to_stock_workflow_auto_submit_when_prefilled', false); // Automatically do the booking using the last price and the amount of the shopping list item, if the product has "Default best before days" set
|
||||||
DefaultUserSetting('shopping_list_show_calendar', false);
|
DefaultUserSetting('shopping_list_show_calendar', false);
|
||||||
|
DefaultUserSetting('shopping_list_disable_auto_compact_view', false);
|
||||||
|
|
||||||
# Chores settings
|
# Chores settings
|
||||||
DefaultUserSetting('chores_due_soon_days', 5);
|
DefaultUserSetting('chores_due_soon_days', 5);
|
||||||
|
|
|
||||||
|
|
@ -384,7 +384,7 @@ if (window.location.hash === "#compact")
|
||||||
}
|
}
|
||||||
|
|
||||||
// Auto switch to compact view on mobile
|
// Auto switch to compact view on mobile
|
||||||
if ($(window).width() < 768 & window.location.hash !== "#compact")
|
if ($(window).width() < 768 & window.location.hash !== "#compact" && !BoolVal(Grocy.UserSettings.shopping_list_disable_auto_compact_view))
|
||||||
{
|
{
|
||||||
$("#shopping-list-compact-view-button").click();
|
$("#shopping-list-compact-view-button").click();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user