@everymatrix/casino-header-controller 0.0.220 → 0.0.224
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@everymatrix/casino-header-controller",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.224",
|
|
4
4
|
"main": "dist/casino-header-controller.js",
|
|
5
5
|
"svelte": "src/index.ts",
|
|
6
6
|
"scripts": {
|
|
@@ -38,5 +38,5 @@
|
|
|
38
38
|
"publishConfig": {
|
|
39
39
|
"access": "public"
|
|
40
40
|
},
|
|
41
|
-
"gitHead": "
|
|
41
|
+
"gitHead": "56c929409f6926e8a96fcfbe5070643a08ae19cd"
|
|
42
42
|
}
|
|
@@ -156,9 +156,11 @@
|
|
|
156
156
|
hamburgerURL.searchParams.append('platform', 'dk');
|
|
157
157
|
}
|
|
158
158
|
|
|
159
|
-
const
|
|
159
|
+
const setActiveLanguage = ():void => {
|
|
160
160
|
setLocale(lang);
|
|
161
|
+
}
|
|
161
162
|
|
|
163
|
+
const initialLoad = ():void => {
|
|
162
164
|
// split operator provided languages string into string array
|
|
163
165
|
languagesArray = languageslist.split(',');
|
|
164
166
|
languagesArray.forEach((languageItem:string, index:number) => {
|
|
@@ -172,7 +174,7 @@
|
|
|
172
174
|
getHeaderMenusData(headerURL);
|
|
173
175
|
}
|
|
174
176
|
|
|
175
|
-
const getHeaderMenusData = (url:
|
|
177
|
+
const getHeaderMenusData = (url:any):Promise<any> => {
|
|
176
178
|
isLoading = true;
|
|
177
179
|
|
|
178
180
|
return new Promise((resolve, reject) => {
|
|
@@ -205,7 +207,8 @@
|
|
|
205
207
|
});
|
|
206
208
|
|
|
207
209
|
$: session && setSession();
|
|
208
|
-
$:
|
|
210
|
+
$: lang && setActiveLanguage();
|
|
211
|
+
$: cmsendpoint && lang && languageslist && initialLoad();
|
|
209
212
|
</script>
|
|
210
213
|
|
|
211
214
|
{#if isLoggedIn}
|
|
@@ -353,8 +356,8 @@
|
|
|
353
356
|
</nav>
|
|
354
357
|
<div class="HeaderTopActions">
|
|
355
358
|
<div class="HeaderItemsMenu">
|
|
356
|
-
<div class="Item ItemLogin" on:click={()=>menuAction('login')}>{$_('headerItem.login')}</div>
|
|
357
|
-
<div class="Item ItemRegister" on:click={()=>menuAction('register')}>{$_('headerItem.register')}</div>
|
|
359
|
+
<div class="Item ItemLogin" tabindex="0" on:click={()=>menuAction('login')}>{$_('headerItem.login')}</div>
|
|
360
|
+
<div class="Item ItemRegister" tabindex="0" on:click={()=>menuAction('register')}>{$_('headerItem.register')}</div>
|
|
358
361
|
<select bind:value={selectedLanguage} class="Item ItemLanguage" on:change={()=>menuAction('language')}>
|
|
359
362
|
{#each languagesArray as operatorLanguage}
|
|
360
363
|
<option value={operatorLanguage}>{operatorLanguage}</option>
|