mirror of
https://github.com/grocy/grocy.git
synced 2026-04-05 20:36:15 +02:00
28 lines
602 B
JavaScript
28 lines
602 B
JavaScript
import { BoolVal } from '../helpers/extensions';
|
|
|
|
function shoppinglistsettingsView(Grocy, scope = null)
|
|
{
|
|
var $scope = $;
|
|
if (scope != null)
|
|
{
|
|
$scope = $(scope).find;
|
|
}
|
|
|
|
if (BoolVal(Grocy.UserSettings.shopping_list_to_stock_workflow_auto_submit_when_prefilled))
|
|
{
|
|
$scope("#shopping-list-to-stock-workflow-auto-submit-when-prefilled").prop("checked", true);
|
|
}
|
|
|
|
if (BoolVal(Grocy.UserSettings.shopping_list_show_calendar))
|
|
{
|
|
$scope("#shopping-list-show-calendar").prop("checked", true);
|
|
}
|
|
|
|
RefreshLocaleNumberInput();
|
|
|
|
}
|
|
|
|
|
|
|
|
window.shoppinglistsettingsView = shoppinglistsettingsView
|