@ecomplus/storefront-components 1.0.0-beta.174 → 1.0.0-beta.175

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": "@ecomplus/storefront-components",
3
- "version": "1.0.0-beta.174",
3
+ "version": "1.0.0-beta.175",
4
4
  "description": "Vue components for E-Com Plus Storefront",
5
5
  "main": "dist/storefront-components.min.js",
6
6
  "scripts": {
@@ -40,6 +40,12 @@ export default {
40
40
  return ['orders', 'favorites', 'subscriptions', 'points', 'account'].includes(value)
41
41
  }
42
42
  },
43
+ isExternalAuth: {
44
+ type: Boolean,
45
+ default () {
46
+ return Boolean(window.$firebaseConfig && window.$firebaseConfig.authDomain)
47
+ }
48
+ },
43
49
  ecomPassport: {
44
50
  type: Object,
45
51
  default () {
@@ -143,6 +149,10 @@ export default {
143
149
  },
144
150
 
145
151
  created () {
152
+ if (this.isExternalAuth && !this.ecomPassport.checkAuthorization()) {
153
+ window.location.href = '/app/account'
154
+ return
155
+ }
146
156
  this.navTabs = [
147
157
  {
148
158
  label: this.i19registration,
@@ -18,3 +18,7 @@
18
18
  color: var(--text-muted);
19
19
  }
20
20
  }
21
+
22
+ .active .shipping-line > small {
23
+ color: inherit;
24
+ }