2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-20 13:56:30 +00:00

Hide main QR button if setting is disabled

This commit is contained in:
Oliver Walters
2021-01-29 09:48:16 +11:00
parent 8c7621d4bc
commit 62501ecb93
2 changed files with 13 additions and 4 deletions

View File

@ -2,6 +2,8 @@
{% load i18n %}
{% load inventree_extras %}
{% settings_value 'BARCODE_ENABLE' as barcodes %}
<!DOCTYPE html>
<html lang="en">
<head>
@ -145,9 +147,11 @@ $(document).ready(function () {
showCachedAlerts();
{% if barcodes %}
$('#barcode-scan').click(function() {
barcodeScanDialog();
});
{% endif %}
});