           component: 'AnnouncementHistory'
           props:
             model: poll
-      canPerform: -> true
+      canPerform: -> !poll.discardedAt
 
     announce_poll:
       icon: 'mdi-send'

    show_history:
      icon: 'mdi-history'
      name: 'action_dock.show_edits'
      canPerform: -> poll.edited()
      perform: ->
        openModal
          component: 'RevisionHistoryModal'

    show_results:
      name: 'poll_common_card.show_results'
      canPerform: ->
        !poll.discardedAt && poll.closingAt && !poll.hideResultsUntilClosed && !poll.showResults()
      perform: ->
        poll.pleaseShowResults = true

    hide_results:
      name: 'poll_common_card.hide_results'
      canPerform: ->
        !poll.discardedAt && poll.showResults() && !poll.closedAt && !poll.iHaveVoted()
      perform: ->
        poll.pleaseShowResults = false

