From 2a6440843ff755d88a7eeddb686331670d9f4329 Mon Sep 17 00:00:00 2001 From: bloemp Date: Tue, 24 Jan 2023 23:30:47 +0100 Subject: [PATCH] Make sure that print label dialog has a submit button. (#4240) Steps to reproduce problem: Go to a screen that has a modal without a submit button like "Show QR code" of the Sublocation overview. Close the QR code modal and after that go to the "Print label" option. It will no longer show a submit button. --- InvenTree/templates/js/translated/label.js | 1 + 1 file changed, 1 insertion(+) diff --git a/InvenTree/templates/js/translated/label.js b/InvenTree/templates/js/translated/label.js index ad1f8e791f..9ece9b3265 100644 --- a/InvenTree/templates/js/translated/label.js +++ b/InvenTree/templates/js/translated/label.js @@ -321,6 +321,7 @@ function selectLabel(labels, items, options={}) { }); modalEnable(modal, true); + modalShowSubmitButton(modal, true); modalSetTitle(modal, '{% trans "Select Label Template" %}'); modalSetContent(modal, html);