API Docs for:
Show:

components.TicketView Class

Defined in: bundle.js:2402
Module: filesize

TicketView

Constructor

components.TicketView

(
  • props
)

Defined in bundle.js:2402

Parameters:

  • props Object
    • user models.client.User
    • io Socket.IO

      Socket.IO socket

    • renderInModal Function
    • title BrowserTitle

      BrowserTitle instance

Methods

_handleSocketConnect

() private

Called when socket reconnects while the user is still watching it

Restarts watching and refreshes the ticket

_handleSocketConnect

() private

Defined in bundle.js:2472

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

Defined in bundle.js:2449

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

fetchTicket

() Bluebird.Promise

Defined in bundle.js:2645

Fetch the ticket data

Returns:

fetchTicket

() Bluebird.Promise

Fetch the ticket data

Returns:

fetchTicket

() Bluebird.Promise

Fetch the ticket data

Returns:

getUpdatesWithMergedComments

() Array

Get array of updates with comments merged that are created by the same user within small amount of time

Returns:

Array:

of models.client.Base

getUpdatesWithMergedComments

() Array

Defined in bundle.js:2712

Get array of updates with comments merged that are created by the same user within small amount of time

Returns:

Array:

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:

Array:

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

()

Defined in bundle.js:2494

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

Defined in bundle.js:2625

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

()

Defined in bundle.js:2550

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

()

Defined in bundle.js:2519

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

()

Defined in bundle.js:2461

Subscribe to the ticket updates