| | |
| | | </template> |
| | | |
| | | <script lang="ts"> |
| | | import { Vue, Component, Prop, Action, namespace, State } from 'nuxt-property-decorator'; |
| | | import { Vue, Component, Prop, Action, namespace } from 'nuxt-property-decorator'; |
| | | |
| | | import appointmentService from '~/assets/ts/services/appointment.service'; |
| | | import { isMobileDevice } from '~/assets/ts/device'; |
| | |
| | | import { UserReviewsConsultantsParams, userReviewsConsultants } from '~/assets/ts/api/consultant'; |
| | | import { Consultant, ConsultantWithAppointmentId } from '~/assets/ts/models/consultant.model'; |
| | | import { Appointment } from '~/assets/ts/models/appointment.model'; |
| | | import { Role } from '~/assets/ts/models/enum/role'; |
| | | |
| | | const localStorage = namespace('localStorage'); |
| | | @Component({ |
| | |
| | | const isAppointment = !!this.agentInfo['appointmentStatus']; |
| | | const contactStatus = this.agentInfo.contactStatus; |
| | | if (!isAppointment && (!contactStatus || contactStatus === 'picked')) { |
| | | this.currentRole === Role.USER |
| | | ? this.$router.push(`/questionnaire/${this.agentInfo.agentNo}`) |
| | | : this.$router.push('/login'); |
| | | this.$router.push(`/questionnaire/${this.agentInfo.agentNo}`); |
| | | } else { |
| | | this.openPopUp(); |
| | | } |