-
Notifications
You must be signed in to change notification settings - Fork 0
Feature kitchen orders #2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
Bilal-S
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@shablenko-sednor
I removed the hotel branding and made some correction when room number is no longer there but we also need to remove the 60s automatic polling and replace the Slack key with a comment & only sent message when there is key.
| </button> | ||
| </td> | ||
| <td class="text-right">${order.roomNumber || ""}</td> | ||
| <td class="text-right">${order.roomNumber == 'undefined' ? '100': order.roomNumber }</td> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is checking whether order.roomNumber is the string "undefined". I don't believe that is what you meant. Maybe you wanted to check whether order.roomNumber is undefined (i.e., not set or was set to undefined).
| <td class="text-right">${order.roomNumber == 'undefined' ? '100': order.roomNumber }</td> | |
| <td class="text-right">${order.roomNumber || "100"}</td> |
In this case, if order.roomNumber is falsy (such as undefined or empty string), then it defaults to "100".
| .map(itemRef => { | ||
| if (/^xb_room_number:/.test(itemRef)) { | ||
| roomNumber = itemRef.split(":")[1]; | ||
| roomNumber = itemRef.split(":")[1]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This removes the whitespace at the end of the line.
| roomNumber = itemRef.split(":")[1]; | |
| roomNumber = itemRef.split(":")[1]; |
|
@Bilal-S @shablenko-sednor I made some suggestions for the recent changes. |
Implement kitchen orders page