diff --git a/index.html b/index.html index aaa20df..d9afc69 100644 --- a/index.html +++ b/index.html @@ -40,19 +40,24 @@ document.body.classList.remove('hidden') floDapps.setCustomPrivKeyInput(getSignedIn); floDapps.setMidStartup(() => - new Promise((resolve) => { + new Promise((resolve, reject) => { RIBC.refreshObjectData().then(() => { resolve() - if (!floGlobals.loaded) - routeTo(window.location.hash); + setTimeout(() => { + if (!floGlobals.loaded) { + routeTo(window.location.hash); + } + }, 0); + }).catch((err) => { + reject(err) }) }) ) floDapps.launchStartUp().then(result => { + floGlobals.loaded = true console.log(result) console.log(`Welcome FLO_ID: ${myFloID}`) RIBC.init(floGlobals.subAdmins.includes(myFloID)).then(result => { - floGlobals.loaded = true console.log(result) renderAllElements() routeTo(window.location.hash, { firstLoad: true }) @@ -1305,6 +1310,9 @@ routingAnimation.in = slideInRight; routingAnimation.out = slideOutRight; break; + case 'sign_in': + floGlobals.tempUserTaskRequest = null + break; } switch (pageId) { case 'project_explorer': @@ -1706,15 +1714,17 @@ categories.push(html`${floGlobals.taskCategories[categoryID]}`) }) } - // if (getRef('task_search_input').value.trim() !== search) - // getRef('task_search_input').value = search || '' + setTimeout(() => { + if (document.getElementById('task_search_input') && document.getElementById('task_search_input').value.trim() !== searchQuery) + document.getElementById('task_search_input').value = searchQuery || '' + }, 0); return html`

Available Tasks

- ${filtered.length > 0 ? html` + ${(filtered.length > 0 || searchQuery) ? html` @@ -3075,7 +3085,6 @@ const description = getRef('update__brief').value.trim() const linkText = getRef('update__link').value.trim() const link = linkText !== '' ? linkText : null - console.log(link) if (description !== '') { RIBC.postInternUpdate({ projectCode, branch, task, description, link }) .then((result) => { @@ -3136,7 +3145,6 @@ const brief = getRef('intern_apply__brief').value.trim(); // const resumeLink = getRef('intern_apply__resume_link').value.trim(); const portfolioLink = getRef('intern_apply__portfolio_link').value.trim(); - console.log(name, contact, brief, portfolioLink, floGlobals.tempUserTaskRequest) const details = { name, brief,