diff --git a/grocy.openapi.json b/grocy.openapi.json index 4fd92a4d..73742448 100644 --- a/grocy.openapi.json +++ b/grocy.openapi.json @@ -3368,6 +3368,9 @@ "description": { "type": "string" }, + "freezer": { + "type": "integer" + }, "row_created_timestamp": { "type": "string", "format": "date-time" @@ -3377,6 +3380,7 @@ "id": "2", "name": "0", "description": null, + "freezer": "0", "row_created_timestamp": "2019-05-02 20:12:25" } }, @@ -3579,6 +3583,7 @@ "location": { "id": "4", "name": "Candy cupboard", + "freezer": "0", "description": null, "row_created_timestamp": "2019-05-02 20:12:25" }, diff --git a/public/viewjs/locationform.js b/public/viewjs/locationform.js index 65e7862b..19a7e9fd 100644 --- a/public/viewjs/locationform.js +++ b/public/viewjs/locationform.js @@ -4,6 +4,7 @@ var jsonData = $('#location-form').serializeJSON(); Grocy.FrontendHelpers.BeginUiBusy("location-form"); + jsonData.freezer = $('#freezer').is(':checked'); if (Grocy.EditMode === 'create') { diff --git a/views/components/locationpicker.blade.php b/views/components/locationpicker.blade.php index b219ed20..e7f492ab 100644 --- a/views/components/locationpicker.blade.php +++ b/views/components/locationpicker.blade.php @@ -12,7 +12,7 @@