diff --git a/src/common/shared_vuejs.ts b/src/common/shared_vuejs.ts index 39c849e..a9a2761 100755 --- a/src/common/shared_vuejs.ts +++ b/src/common/shared_vuejs.ts @@ -83,6 +83,9 @@ export const shared_consts = { TypeMsg: { SEND_TO_ALL: 1, + SEND_TO_SOCI: 2, + SEND_TO_SOCIO_RESIDENTE: 3, + SEND_TO_NON_SOCI: 10 }, TypeMsg_Actions: { @@ -109,6 +112,40 @@ export const shared_consts = { } ], + selectDestination: [ + { + id: 0, + label: 'A Tutti', + value: 1 + }, + { + id: 1, + label: 'Solo ai Soci', + value: 2 + }, + { + id: 2, + label: 'Solo ai Soci Residenti', + value: 3 + }, + { + id: 3, + label: 'Solo ai NON Soci', + value: 10 + } + ], + + OrderStatus: { + NONE: 0, + IN_CART: 1, + CHECKOUT_CONFIRMED: 2, + PAYED: 3, + DELIVEDED: 4, + RECEIVED: 5, + CANCELED: 10, + }, + + fieldsUserToChange() { return ['_id', 'username', 'email', 'name', 'surname', 'perm', 'date_reg', 'verified_email', 'img', 'ipaddr', 'lasttimeonline', 'profile', 'news_on'] } diff --git a/src/components/CEventsCalendar/CEventsCalendar.ts b/src/components/CEventsCalendar/CEventsCalendar.ts index 663fa43..4735947 100755 --- a/src/components/CEventsCalendar/CEventsCalendar.ts +++ b/src/components/CEventsCalendar/CEventsCalendar.ts @@ -467,7 +467,7 @@ export default class CEventsCalendar extends MixinEvents { public addBookEventMenu(eventparam) { if (!UserStore.state.isLogged || !UserStore.state.my.verified_email) { // Visu right Toolbar to make SignIn - GlobalStore.state.RightDrawerOpen = true + GlobalStore.state.rightDrawerOpen = true tools.showNeutralNotif(this.$q, this.$t('login.needlogin')) tools.scrollToTop() // window.scrollTo(0, 0) @@ -490,7 +490,7 @@ export default class CEventsCalendar extends MixinEvents { public askForInfoEventMenu(eventparam) { if (!UserStore.state.isLogged || !UserStore.state.my.verified_email) { // Visu right Toolbar to make SignIn - GlobalStore.state.RightDrawerOpen = true + GlobalStore.state.rightDrawerOpen = true tools.showNeutralNotif(this.$q, this.$t('login.needlogin')) tools.scrollToTop() diff --git a/src/components/CMyCart/CMyCart.ts b/src/components/CMyCart/CMyCart.ts index 045e30c..fead140 100755 --- a/src/components/CMyCart/CMyCart.ts +++ b/src/components/CMyCart/CMyCart.ts @@ -6,7 +6,7 @@ import { CCardState } from '../CCardState' import { CCopyBtn } from '../CCopyBtn' import { IOrder, IProduct } from '@src/model' -import { Products, UserStore } from '@store' +import { GlobalStore, Products, UserStore } from '@store' import { CSingleCart } from '../../components/CSingleCart' import MixinUsers from '@src/mixins/mixin-users' @@ -44,4 +44,8 @@ export default class CMyCart extends MixinUsers { return 0 } } + + public closecart() { + GlobalStore.state.rightCartOpen = false + } } diff --git a/src/components/CMyCart/CMyCart.vue b/src/components/CMyCart/CMyCart.vue index 7ca49f8..7c6680e 100755 --- a/src/components/CMyCart/CMyCart.vue +++ b/src/components/CMyCart/CMyCart.vue @@ -30,7 +30,7 @@ Il Carrello è Vuoto