Skip to content

Commit

Permalink
issue #1028
Browse files Browse the repository at this point in the history
  • Loading branch information
migbash committed Feb 1, 2023
1 parent dd81fed commit 7de8e0d
Showing 1 changed file with 18 additions and 8 deletions.
26 changes: 18 additions & 8 deletions src/lib/components/fixtures_page/standings/Standings-Widget.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,19 @@
import no_visual from './assets/no_visual.svg';
import no_visual_dark from './assets/no_visual_dark.svg';
// ~~~~~~~~~~~~~~~~~~~~~
// COMPONENT VARIABLES
// ~~~~~~~~~~~~~~~~~~~~~
let loaded: boolean = false; // [ℹ] holds boolean for data loaded;
let refresh: boolean = false; // [ℹ] refresh value speed of the WIDGET;
let refresh_data: any = undefined; // [ℹ] refresh-data value speed;
let noStandingsBool: any = false; // [ℹ] identifies the noStandingsBool boolean;
let no_widget_data: boolean = false; // [ℹ] identifies the no_widget_data boolean;
let dropdownSeasonSelect: any = undefined // [ℹ] selected TOP LEAGUE;
let toggleCTA: boolean = false;
let showMore: boolean = false;
let currentSeason: number = undefined;
let show_placeholder: boolean = false; // [ℹ] [override] placeholder for "no-widget-data" for fixtures-page
let diasbleDev: boolean = false;
Expand Down Expand Up @@ -69,12 +74,12 @@
if (STANDINGS_DATA == undefined) {
// [🐞]
if (dev) logDevGroup ("tournament standings [DEV]", `❌ no data available!`)
noStandingsBool = true;
no_widget_data = true;
return;
}
// [ℹ] otherwise, no data
else {
noStandingsBool = false;
no_widget_data = false;
}
// loaded = true;
// STANDINGS_T.data.sportbook_detail = response
Expand Down Expand Up @@ -151,7 +156,7 @@
// [ℹ] reset necessary variables;
refresh = true
loaded = false
noStandingsBool = false
no_widget_data = false
// widgetInit()
setTimeout(async() => {
refresh = false
Expand Down Expand Up @@ -181,7 +186,7 @@
: season?.group_standings.length
;
}
noStandingsBool =
no_widget_data =
seasonCheckLength == 0 ||
seasonCheckLength == undefined
? true
Expand All @@ -207,7 +212,8 @@
/>
{/if}

<div>
<div
class:display_none={no_widget_data && !show_placeholder}>

<!--
[ℹ] SEO-DATA-LOADED
Expand Down Expand Up @@ -239,7 +245,7 @@
<!--
[ℹ] NO WIDGET DATA AVAILABLE PLACEHOLDER
-->
{#if noStandingsBool
{#if no_widget_data
&& seasonCheck
&& !loaded}
<!--
Expand Down Expand Up @@ -300,7 +306,7 @@
<!--
[ℹ] MAIN WIDGET COMPONENT
-->
{#if !noStandingsBool
{#if !no_widget_data
&& !refresh
&& browser
&& $userBetarenaSettings.country_bookmaker
Expand Down Expand Up @@ -725,6 +731,10 @@

<style>
.display_none {
display: none !important;
}
#background-area-close {
position: absolute;
top: 0;
Expand Down

0 comments on commit 7de8e0d

Please sign in to comment.