 {getErrors} = require './lib/validations'
 talkClient = require 'panoptes-client/lib/talk-client'
 Paginator = require './lib/paginator'
-PromiseRenderer = require '../components/promise-renderer'
 SingleSubmitButton = require '../components/single-submit-button'
 upvotedByCurrentUser = require './lib/upvoted-by-current-user'
 Moderation = require './lib/moderation'

    @discussionsRequest(discussion)
      .then (discussion) =>
        @setState {discussion: discussion[0]}

  onUpdateComment: (textContent, subject, commentId) ->
    {discussion} = @props.params

            query: @props.location.query

      @setComments(@props.location.query.page ? 1)
    
    if @props.user?
      talkClient
        .type 'roles'
        .get 
          user_id: @props.user.id
          section: ['zooniverse', @state.discussion.section]
          is_shown: true
          page_size: 100
        .then (roles) =>
          @setState {roles}

  commentsRequest: (page) ->
    {board, discussion} = @props.params
