From 655a6ecf38386e26861057ad7c4a9d5b20e68e7d Mon Sep 17 00:00:00 2001 From: jdbocarsly Date: Tue, 24 Sep 2024 22:24:48 -0500 Subject: [PATCH] pass through GHS_codes --- webapp/src/gateway_fetch_utils.js | 5 +++-- webapp/src/views/EditPage.vue | 11 +++++++++++ 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/webapp/src/gateway_fetch_utils.js b/webapp/src/gateway_fetch_utils.js index 6fa327785..8fc6c9d4c 100644 --- a/webapp/src/gateway_fetch_utils.js +++ b/webapp/src/gateway_fetch_utils.js @@ -6,11 +6,12 @@ import { GATEWAY_URL } from "@/resources.js"; import { fetch_post } from "@/server_fetch_utils.js"; -export function printQRCode(item_id, name, url, hcodes) { - return fetch_post(`${GATEWAY_URL}/print-label/`, { +export function printQRCode(item_id, name, url, hcodes, isDryrun) { + return fetch_post(`${GATEWAY_URL}/print-label`, { item_id: item_id, name: name, url: url, hcodes: hcodes, + dryrun: isDryrun, }); } diff --git a/webapp/src/views/EditPage.vue b/webapp/src/views/EditPage.vue index 54c1af292..7b2cda19c 100644 --- a/webapp/src/views/EditPage.vue +++ b/webapp/src/views/EditPage.vue @@ -38,6 +38,7 @@ View JSON + Print label