Fixed LABEL_PRINTER_HOOK_JSON check was missing when running label printer WebHooks client side (fixes #1978)

This commit is contained in:
Bernd Bestel
2022-08-25 18:46:49 +02:00
parent c396c2a84c
commit d883474f03
3 changed files with 24 additions and 8 deletions

View File

@@ -103,8 +103,9 @@
Grocy.Webhooks = {
@if(GROCY_FEATURE_FLAG_LABEL_PRINTER && !GROCY_LABEL_PRINTER_RUN_SERVER)
"labelprinter" : {
"hook" : "{{ GROCY_LABEL_PRINTER_WEBHOOK}}",
"extra_data" : {!! json_encode(GROCY_LABEL_PRINTER_PARAMS) !!}
"hook": "{{ GROCY_LABEL_PRINTER_WEBHOOK }}",
"extra_data": {!! json_encode(GROCY_LABEL_PRINTER_PARAMS) !!},
"json": {{ BoolToString(GROCY_LABEL_PRINTER_HOOK_JSON) }}
}
@endif
};