From 1164f52ef254f7b9a8c798769e6310eeaac22b83 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Pasquier Date: Thu, 18 Feb 2021 15:44:09 +0100 Subject: [PATCH] fix: larger timeout and facultative communities --- src/index.pug | 31 ++++++++++++++++--------------- src/scripts/timeout-goeswrong.js | 2 +- 2 files changed, 17 insertions(+), 16 deletions(-) diff --git a/src/index.pug b/src/index.pug index 7c4d43b..48e6c47 100644 --- a/src/index.pug +++ b/src/index.pug @@ -166,21 +166,22 @@ html(lang="en") widget-logo='hubl-index-community-logo' widget-name='hubl-index-community-text' ) - div.loader#hubl-index-community-selector-loader - div - div - div - div - solid-display.community-flex-container( - data-src=`${endpoints.get.communities}` - fields='action' - action-action='action' - widget-action='hubl-index-select-community' - loader-id='hubl-index-community-selector-loader' - order-asc='name' - empty-widget='hubl-auto-login' - id='hubl-index-community-selector' - ) + if endpoints.get.communities + div.loader#hubl-index-community-selector-loader + div + div + div + div + solid-display.community-flex-container( + data-src=`${endpoints.get.communities}` + fields='action' + action-action='action' + widget-action='hubl-index-select-community' + loader-id='hubl-index-community-selector-loader' + order-asc='name' + empty-widget='hubl-auto-login' + id='hubl-index-community-selector' + ) #join-community(data-view="join-community", hidden, no-render).segment.full.bg-color-secondary.text-center.index-community.loggedIn .segment.half.sm-full.bg-color-white.text-center diff --git a/src/scripts/timeout-goeswrong.js b/src/scripts/timeout-goeswrong.js index f1963d7..53acb0f 100644 --- a/src/scripts/timeout-goeswrong.js +++ b/src/scripts/timeout-goeswrong.js @@ -2,4 +2,4 @@ setTimeout(() => { if(document.querySelector('.loggedIn-loader').style.display != 'none') { document.querySelector('#something-goes-wrong').removeAttribute('hidden') } -}, 5000); \ No newline at end of file +}, 10000); \ No newline at end of file