Skip to content

Commit 463efa4

Browse files
committed
assets(core): check if print payment is enabled
Change-Id: I231d32b866590ea08f2fcab44def02ec48afa38a
1 parent ebe7cea commit 463efa4

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

assets/js/core.js

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1303,10 +1303,17 @@ const photoBooth = (function () {
13031303
const copies = config.print.max_multi === 1 ? 1 : await photoboothTools.askCopies();
13041304

13051305
if (copies && !isNaN(copies)) {
1306-
photoboothTools.printPayment(filename, copies, () => {
1307-
remoteBuzzerClient.inProgress(false);
1308-
buttonPrint.trigger('blur');
1309-
});
1306+
if (config.payments.enabled) {
1307+
photoboothTools.printPayment(filename, copies, () => {
1308+
remoteBuzzerClient.inProgress(false);
1309+
buttonPrint.trigger('blur');
1310+
});
1311+
} else {
1312+
photoboothTools.printImage(filename, copies, () => {
1313+
remoteBuzzerClient.inProgress(false);
1314+
buttonPrint.trigger('blur');
1315+
});
1316+
}
13101317
}
13111318
});
13121319

0 commit comments

Comments
 (0)