diff --git a/static/js/sse-dom.js b/static/js/sse-dom.js index 7c4eb5ec..cf9e5bee 100644 --- a/static/js/sse-dom.js +++ b/static/js/sse-dom.js @@ -5,6 +5,7 @@ if (!waitlist) { } waitlist.sse_dom = (function () { + let getMetaData = waitlist.base.getMetaData; let loadWaitlist = waitlist.listdom.loadWaitlist; let addFitToDom = waitlist.listdom.addFitToDom; let addNewEntry = waitlist.listdom.addNewEntry; @@ -15,6 +16,8 @@ waitlist.sse_dom = (function () { let clearWaitlists = waitlist.listdom.clearWaitlists; let sse = waitlist.sse; + let settings = {}; + function fitAddedListener(event) { let data = JSON.parse(event.data); addFitToDom(data.listId, data.entryId, data.fit, data.isQueue, data.userId); @@ -93,6 +96,7 @@ waitlist.sse_dom = (function () { function init() { loadWaitlist(); + settings.can_manage = getMetaData('can-fleetcomp') === "True"; } $(document).ready(init);