Skip to content

Commit

Permalink
Version 2.2.3
Browse files Browse the repository at this point in the history
* Fixed a bug where the checkin modes would not be cleared when populated
* Fixed a bug where the printer templates would not be cleared when populated
* Added console log for HTML for ticket (for debug purposes)
  • Loading branch information
haydendonald committed Oct 26, 2021
1 parent 6272cde commit 7970b3f
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
1 change: 1 addition & 0 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -775,6 +775,7 @@ ipcMain.handle("setTokenToPrinter", async function (event, token) {

//Called when a print notification comes from firebase
ipcMain.handle("gotPrintFromFirebase", async function (event, incoming) {
console.log(incoming);
if (incoming.data.html === undefined) { return; }
if (printerHandler.enabled) {
eventHandler.info("Got print notification for " + incoming.data.title, EVENT_HANDLER_NAME);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "kardinia-kiosk-checkin",
"version": "2.2.2",
"version": "2.2.3",
"description": "Kardinia Checkin Kiosk",
"main": "app.js",
"scripts": {
Expand Down
6 changes: 5 additions & 1 deletion versions.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,8 @@ First stable release.
* Fixed the default rotate for brother printers being incorrect
## v2.2.2
* Removed polling for kiosk states every 60 seconds in the configuration page as this would effectively spam Fluro if the kiosk was left on for a long period of time
* Printer will be disabled for the first few seconds to avoid printing unwanted labels
* Printer will be disabled for the first few seconds to avoid printing unwanted labels
## v2.2.3
* Fixed a bug where the checkin modes would not be cleared when populated
* Fixed a bug where the printer templates would not be cleared when populated
* Added console log for HTML for ticket (for debug purposes)
4 changes: 2 additions & 2 deletions web/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ async function update() {
//Update our HTML fields
//Add our options
var element = document.getElementById("modeSelection");
element.innerHTML = "";
for (var i in kioskInformation.modes) {
var mode = document.createElement("a");
mode.href = "#";
Expand Down Expand Up @@ -215,8 +216,6 @@ async function openPrinterSettings(show) {
hideShowElements("advanced", "loader");
var printerSettings = await getPrinterSettings();

console.log(printerSettings);

//Populate the printer types
var printerTypes = document.getElementById("printerType");
printerTypes.innerHTML = "<option value='disable'>Disabled</option> <option value='custom'>Custom</option>";
Expand Down Expand Up @@ -244,6 +243,7 @@ async function openPrinterSettings(show) {
var fluroPrinterNameTagTemplate = document.getElementById("fluroPrinterNameTagTemplate");
var fluroPrinterParentTemplate = document.getElementById("fluroPrinterParentTemplate");
fluroPrinterNameTagTemplate.innerHTML = "";
fluroPrinterParentTemplate.innerHTML = "";
for (var i = 0; i < printerSettings.fluroTemplates.length; i++) {
switch (printerSettings.fluroTemplates[i].data.type) {
case "child": {
Expand Down

0 comments on commit 7970b3f

Please sign in to comment.