components.TicketView Class
TicketView
Constructor
components.TicketView
-
props
Parameters:
-
propsObject-
usermodels.client.User -
ioSocket.IOSocket.IO socket
-
renderInModalFunction -
titleBrowserTitleBrowserTitle instance
-
Item Index
Methods
- _handleSocketConnect
- _handleSocketConnect
- _handleSocketConnect
- _handleWatcherUpdate
- _handleWatcherUpdate
- _handleWatcherUpdate
- fetchTicket
- fetchTicket
- fetchTicket
- getUpdatesWithMergedComments
- getUpdatesWithMergedComments
- getUpdatesWithMergedComments
- lazyMarkAsRead
- lazyMarkAsRead
- lazyMarkAsRead
- markAsRead
- markAsRead
- markAsRead
- saveComment
- saveComment
- saveComment
- scrollToAnchoredElement
- scrollToAnchoredElement
- scrollToAnchoredElement
- startWatching
- startWatching
- startWatching
Methods
_handleSocketConnect
()
private
Called when socket reconnects while the user is still watching it
Restarts watching and refreshes the ticket
_handleSocketConnect
()
private
Called when socket reconnects while the user is still watching it
Restarts watching and refreshes the ticket
_handleSocketConnect
()
private
Called when socket reconnects while the user is still watching it
Restarts watching and refreshes the ticket
_handleWatcherUpdate
()
private
Called when a new live comment message is received from socket.io
_handleWatcherUpdate
()
private
Called when a new live comment message is received from socket.io
_handleWatcherUpdate
()
private
Called when a new live comment message is received from socket.io
getUpdatesWithMergedComments
()
Array
Get array of updates with comments merged that are created by the same user within small amount of time
Returns:
of models.client.Base
getUpdatesWithMergedComments
()
Array
Get array of updates with comments merged that are created by the same user within small amount of time
Returns:
of models.client.Base
getUpdatesWithMergedComments
()
Array
Get array of updates with comments merged that are created by the same user within small amount of time
Returns:
of models.client.Base
lazyMarkAsRead
()
Lazy version of the markAsRead() method. It will mark the ticket
as read at max once in 10 seconds
lazyMarkAsRead
()
Lazy version of the markAsRead() method. It will mark the ticket
as read at max once in 10 seconds
lazyMarkAsRead
()
Lazy version of the markAsRead() method. It will mark the ticket
as read at max once in 10 seconds
markAsRead
()
Bluebird.Promise
Mark the ticket as read by the current user and refetch the ticket data
Returns:
markAsRead
()
Bluebird.Promise
Mark the ticket as read by the current user and refetch the ticket data
Returns:
markAsRead
()
Bluebird.Promise
Mark the ticket as read by the current user and refetch the ticket data
Returns:
saveComment
()
Save comment handler. Reports any unhandled errors to the global error handler
saveComment
()
Save comment handler. Reports any unhandled errors to the global error handler
saveComment
()
Save comment handler. Reports any unhandled errors to the global error handler
scrollToAnchoredElement
()
Anchor links (eg. #foobar) does not work on dynamically loaded elements because they are not present at load time. This method manually scrolls to the linked element when they appear.
scrollToAnchoredElement
()
Anchor links (eg. #foobar) does not work on dynamically loaded elements because they are not present at load time. This method manually scrolls to the linked element when they appear.
scrollToAnchoredElement
()
Anchor links (eg. #foobar) does not work on dynamically loaded elements because they are not present at load time. This method manually scrolls to the linked element when they appear.
startWatching
()
Subscribe to the ticket updates
startWatching
()
Subscribe to the ticket updates
startWatching
()
Subscribe to the ticket updates
