You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 1, 2022. It is now read-only.
I wanna have useDetailPopup on and off, when specific user clicks his/her own event.
In order to do this, I used 'setOptions' as below, it didnt work well though.
// Write example codeonClickSchedule(res){//1. 처음 이벤트 클릭시 eventDetailPopup을 끄기 this.$refs.tuiCal.invoke('setOptions',{useDetailPopup: false})// 2. isPrivate이 true인지 확인if(res.schedule.isPrivate){this.FETCH_EMPLOYEE_ID_BY_SCHEDULE_ID({// 3. if(true)면 해당 이벤트의 id로 회원의 id가져오기employeeScheduleId: res.schedule.id}).then(()=>{// 4. 저장된 회원 id와 로그인한 회원의 id를 비교하여 로그인한 회원인지 구분하기.if(this.getEmployeeId===Number(this.myEmployeeId)){// 5. 해당 isReadOnly을 일시적으로 false로 만들기res.schedule.isReadOnly=false//6. 위 작업이 끝나면 eventDetailPopup을 다시 켜기 this.$refs.tuiCal.invoke('setOptions',{useDetailPopup: true})}}).catch(err=>{console.log(err)if(err.response.status===403){this.message='권한이 없습니다. 로그아웃 합니다.'this.showNotify(this.message)this.$router.push('/')}})}
Expected Behavior
자신이 쓴 event만 수정 가능하도록 하려고, useDetialPopUp을 setOptions로 false 하였다가, 작업이 끝나면 true로 바꿔주고 싶습니다. 하지만 아래와 같은 에러가 발생합니다.
Uncaught (in promise) TypeError: Cannot read property 'status' of undefined
at eval (VM14949 Scheduler.vue:450)
The text was updated successfully, but these errors were encountered:
Version
toast-ui/vue-calendar: 1.1.1
Test Environment
Window, Vue
Current Behavior
I wanna have useDetailPopup on and off, when specific user clicks his/her own event.
In order to do this, I used 'setOptions' as below, it didnt work well though.
Expected Behavior
자신이 쓴 event만 수정 가능하도록 하려고, useDetialPopUp을 setOptions로 false 하였다가, 작업이 끝나면 true로 바꿔주고 싶습니다. 하지만 아래와 같은 에러가 발생합니다.
Uncaught (in promise) TypeError: Cannot read property 'status' of undefined
at eval (VM14949 Scheduler.vue:450)
The text was updated successfully, but these errors were encountered: