@lancom/shared 0.0.391 → 0.0.393

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.
@@ -28,7 +28,7 @@
28
28
  <h5 class="lc_h3 lc_uppercase lc_bold mt-10 mb-15">Billing Address</h5>
29
29
  <address-form
30
30
  :address="order.billingAddress"
31
- :copy-from="needToPickupWithoutErrors ? null : order.shippingAddress"
31
+ :copy-from="order.shippingAddress"
32
32
  name-prefix="Delivery "
33
33
  :without-additional-info="true" />
34
34
  </div>
@@ -13,7 +13,12 @@
13
13
  Order {{ orderData.code }}
14
14
  </div>
15
15
  <div class="OrderSuccess__card-info">
16
- Thanks for your order! Your order has been successfully processed using <b>{{ orderData.googleCharge ? 'Google Pay' : orderData.paymentMethod }} {{ cardInfo ? `(${cardInfo})` : '' }}</b>. You will receive an order confirmation email shortly.
16
+ <span v-if="orderData.paymentMethod === 'deposit'">
17
+ Thanks for your order! Your order has been successfully received as a bank deposit order. You will receive an order confirmation email shortly with a <b>tax invoice and our bank details</b>. Please make payment for your order to be processed
18
+ </span>
19
+ <span v-else>
20
+ Thanks for your order! Your order has been successfully processed using <b>{{ orderData.googleCharge ? 'Google Pay' : orderData.paymentMethod }} {{ cardInfo ? `(${cardInfo})` : '' }}</b>. You will receive an order confirmation email shortly.
21
+ </span>
17
22
  <b></b>
18
23
  </div>
19
24
  <div>
@@ -0,0 +1,5 @@
1
+ export default function ({ store, redirect }) {
2
+ if (!store.state.auth.token) {
3
+ return redirect('/customer/signin');
4
+ }
5
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lancom/shared",
3
- "version": "0.0.391",
3
+ "version": "0.0.393",
4
4
  "description": "lancom common scripts",
5
5
  "author": "e.tokovenko <e.tokovenko@gmail.com>",
6
6
  "repository": {
@@ -13,6 +13,7 @@ import metaInfo from '@lancom/shared/mixins/meta-info';
13
13
 
14
14
  export default {
15
15
  name: 'CustomerCouponsPage',
16
+ middleware: 'authenticated',
16
17
  components: {
17
18
  CustomerCoupons: () => import('@lancom/shared/components/customer/customer_coupons/customer-coupons'),
18
19
  CustomerMenu: () => import('@lancom/shared/components/customer/customer_navigation_menu/customer-navigation-menu')
@@ -13,6 +13,7 @@ import metaInfo from '@lancom/shared/mixins/meta-info';
13
13
 
14
14
  export default {
15
15
  name: 'CustomerOrdersPage',
16
+ middleware: 'authenticated',
16
17
  components: {
17
18
  CustomerOrders: () => import('@lancom/shared/components/customer/customer_orders/customer-orders'),
18
19
  CustomerNavigationMenu: () => import('@lancom/shared/components/customer/customer_navigation_menu/customer-navigation-menu')
@@ -12,6 +12,7 @@ import metaInfo from '@lancom/shared/mixins/meta-info';
12
12
 
13
13
  export default {
14
14
  name: 'CustomerCreatePage',
15
+ middleware: 'authenticated',
15
16
  components: {
16
17
  CustomerNavigationMenu: () => import('@lancom/shared/components/customer/customer_navigation_menu/customer-navigation-menu'),
17
18
  CustomerSettings: () => import('@lancom/shared/components/pages/customer/settings/settings')
package/store/auth.js CHANGED
@@ -42,6 +42,7 @@ export const actions = {
42
42
  auth_logout({ commit }) {
43
43
  commit('AUTH_LOGOUT');
44
44
  Cookie.remove('auth');
45
+ window.location.href = '/';
45
46
  },
46
47
  update_user({ commit }, { token, user }) {
47
48
  Cookie.set('auth', token, { expires: 365 });