From ebd8d1c6e029470c3f00b892b876c5e086dd0662 Mon Sep 17 00:00:00 2001 From: Christoph Stahl Date: Fri, 11 Oct 2024 00:56:32 +0200 Subject: [PATCH] Fix: Entry not forwarded correctly in kiosk mode --- src/App.vue | 14 ++++++++------ src/components/AlreadyQueued.vue | 9 ++++----- 2 files changed, 12 insertions(+), 11 deletions(-) diff --git a/src/App.vue b/src/App.vue index 995b5e3..644beea 100644 --- a/src/App.vue +++ b/src/App.vue @@ -106,14 +106,14 @@ function checked_append_with_name(entry, name) { } } -function append_anyway(ident, name, source, uid) { +function append_anyway(entry) { $("#getusername").foundation("close"); $("#alreadyqueued").foundation("close"); state.value.current_name = null; state.value.current_entry = null; state.value.double_entry = {'artist': null, 'title': null, 'reason': null}; - state.socket.emit("append-anyway", {"ident": ident, "performer": name, "source": source, "uid": uid }); + state.socket.emit("append-anyway", {"ident": entry.ident, "performer": entry.performer, "source": entry.source, "uid": null }); $("#queue-tab-title").click(); } @@ -128,13 +128,14 @@ function raw_append(ident, name, source, uid) { $("#queue-tab-title").click(); } -function wait_append(ident, name, source, uid) { +function wait_append(entry) { $("#getusername").foundation("close"); $("#alreadyqueued").foundation("close"); + console.log(entry) + state.socket.emit("waiting-room-append", {"ident": entry.ident, "performer": entry.performer, "source": entry.source, "uid": null }); state.value.current_name = null; state.value.current_entry = null; - state.socket.emit("waiting-room-append", {"ident": ident, "performer": name, "source": source, "uid": uid }); $("#queue-tab-title").click(); } @@ -321,11 +322,12 @@ function joinRoom() { @close_name="close_name" />
{{ state.last_msg }} diff --git a/src/components/AlreadyQueued.vue b/src/components/AlreadyQueued.vue index e6f2bc6..35583bf 100644 --- a/src/components/AlreadyQueued.vue +++ b/src/components/AlreadyQueued.vue @@ -1,6 +1,6 @@