최근 검색
최근 검색 없음

Chris Barry
가입한 날짜: 2021년 10월 16일
·
마지막 활동: 2021년 10월 16일
팔로잉
0
팔로워
0
총 활동 수
2
투표 수
0
가입 플랜
1
활동 개요
배지
문서
게시물
커뮤니티 댓글
문서 댓글
활동 개요
님의 최근 활동 Chris Barry
Chris Barry님이 에 게시물을 만듦
Hi, this is causing me to pull my hair out a bit...
So, I have a ticket_sidebar app client that has a button on it.
This button triggers a modal.
As the button / sidebar can't send data to the modal, it waits for the modal to start, which then looks through the client.instances and finds a "ticket_sidebar" instance, loads that client, all good.
The problem happens when that modal is closed, we go to a new ticket, and the button is pressed again.
In this new window, the ticket_sidebar instance is different than the last one (ticket_sidebar instances persist between tabs and join the .instances array.
Currently the check in the modal, for which "ticket_sidebar" instance to grab is just:
if (instances[instanceGuid].location === 'ticket_sidebar') {
// return modalClient.instance(instanceGuid)
// }
Now we have a problem, as we don't know which of the "ticket_sidebar" instances to grab, in order to pull the right requester.id to load in to the modal (the modal currently just always loads of the first ticket loaded)
I've tried various hacks and ways to get around this, but it's feeling pretty bad at this point, surely I should be able to get the right data from the right "ticket_sidebar" into the modal?
Please help!
(Am reading this now, found via the auto quick links, perhaps the parameter passing would help, but I'd love to know the real answer to this, and how you can find the right parent instance when you have multiple tabs open!)
https://developerblog.zendesk.com/making-modals-work-in-zaf-v2-251b7c940e58
2021년 7월 14일에 게시됨 · Chris Barry
0
팔로워
2
투표 수
1
댓글