@everymatrix/casino-header-controller 0.0.280 → 0.0.281
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.281",
|
|
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": "335d6854670506055ce9c6cc5dcbc1a0172a0c70"
|
|
42
42
|
}
|
|
@@ -66,14 +66,6 @@
|
|
|
66
66
|
let hamburgerMenuActive:boolean = false;
|
|
67
67
|
let logoPath:string = '';
|
|
68
68
|
|
|
69
|
-
let fallbackSecondaryMenu = [
|
|
70
|
-
{
|
|
71
|
-
"id": 0,
|
|
72
|
-
"label": $_('fallbackSecondaryMenu.promotions'),
|
|
73
|
-
"path": "/promotions",
|
|
74
|
-
}
|
|
75
|
-
];
|
|
76
|
-
|
|
77
69
|
const menuAction = (data: any) => {
|
|
78
70
|
switch (data) {
|
|
79
71
|
case 'login':
|
|
@@ -192,9 +184,6 @@
|
|
|
192
184
|
.then((data: any) => {
|
|
193
185
|
mainMenuArray = data.desktop.primary;
|
|
194
186
|
secondaryMenuArray = data.desktop.secondary;
|
|
195
|
-
if( !secondaryMenuArray.length ) {
|
|
196
|
-
secondaryMenuArray = fallbackSecondaryMenu;
|
|
197
|
-
}
|
|
198
187
|
isLoading = false;
|
|
199
188
|
|
|
200
189
|
resolve(data);
|