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