From 35f34caaa026af615489324fec2aed8445233d1e Mon Sep 17 00:00:00 2001 From: Manuel Worschech Date: Sun, 10 Mar 2024 17:30:50 +0100 Subject: [PATCH] Add an option for displaying a Barcode Buddy link in the navbar --- config-dist.php | 3 +++ views/layout/default.blade.php | 36 +++++++++++++++++++++------------- 2 files changed, 25 insertions(+), 14 deletions(-) diff --git a/config-dist.php b/config-dist.php index 79475979..d0ecd4e7 100644 --- a/config-dist.php +++ b/config-dist.php @@ -104,6 +104,9 @@ Setting('DEFAULT_PERMISSIONS', ['ADMIN']); // "1D" (=> Code128) or "2D" (=> DataMatrix) Setting('GROCYCODE_TYPE', '1D'); +// Add Barcode Buddy link to navbar when not empty (like 'https://barcodebuddy.example.com/' or 'http://192.168.0.10/') +Setting('BARCODE_BUDDY_URL', ''); + // Label printer settings Setting('LABEL_PRINTER_WEBHOOK', ''); // The URI that Grocy will POST to when asked to print a label diff --git a/views/layout/default.blade.php b/views/layout/default.blade.php index 79bcb8b1..86bf432b 100644 --- a/views/layout/default.blade.php +++ b/views/layout/default.blade.php @@ -461,6 +461,14 @@