We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 25c752c commit df01063Copy full SHA for df01063
1 file changed
src/Web/WebMVC/Views/Shared/_Layout.cshtml
@@ -118,7 +118,7 @@
118
function registerNotificationHandlers(connection) {
119
connection.on("UpdatedOrderState", (message) => {
120
toastr.success('Updated to status: ' + message.status, 'Order Id: ' + message.orderId);
121
- if (window.location.pathname === '/Order') {
+ if (window.location.pathname.split("/").pop() === 'Order') {
122
refreshOrderList();
123
}
124
});
@@ -132,7 +132,7 @@
132
clearTimeout(timerId);
133
timerId = setTimeout(function () {
134
window.location.reload();
135
- }, 5000);
+ }, 1000);
136
137
</script>
138
</body>
0 commit comments