- Add Button Whatsapp Chat
- Fixed 'Ask Info' and 'Book' if the email arrived... - Added "Settings" table: URL_FACEBOOK, TELEGRAM_SUPPORT, URL_INSTAGRAM, WHATSAPP_CELL, INT_CODE, MAIN_EMAIL, CONTACTS_EMAIL_CELL, CALL_WORKING_DAYS, EVENTS_CAL, MSG_REPLY_AFTER_BOOKING. -
This commit is contained in:
30
src/mixins/mixin-operator.ts
Normal file
30
src/mixins/mixin-operator.ts
Normal file
@@ -0,0 +1,30 @@
|
||||
import Vue from 'vue'
|
||||
|
||||
import Component from 'vue-class-component'
|
||||
import { CalendarStore } from '../store/Modules'
|
||||
import { UserStore } from '@modules'
|
||||
|
||||
@Component
|
||||
export default class MixinOperator extends Vue {
|
||||
public getOperators() {
|
||||
return CalendarStore.state.operators
|
||||
}
|
||||
|
||||
public getOperatorByUsername(username) {
|
||||
return CalendarStore.getters.getOperatorByUsername(username)
|
||||
}
|
||||
|
||||
public getImgTeacherByUsername(username) {
|
||||
return `statics/images/` + CalendarStore.getters.getImgTeacherByUsername(username)
|
||||
}
|
||||
|
||||
public getTeacherByUsername(username) {
|
||||
const op = this.getOperatorByUsername(username)
|
||||
if (!!op) {
|
||||
return op.name + ' ' + op.surname
|
||||
} else {
|
||||
return ''
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user