                 'data-confirm': osu.trans('common.confirmation')
                 osu.trans('beatmaps.discussions.allow_kudosu')
 
+  clearPermalinkClicked: =>
+    @setState permalinkTimer: null
+
 
   permalink: (e) =>
     e.preventDefault()
-    targetEl = e.currentTarget
 
     # copy url to clipboard
-    clipboard.writeText targetEl.href
+    clipboard.writeText e.currentTarget.href
 
     # show feedback
-    currentLabel = targetEl.innerHTML
-    targetEl.innerHTML = osu.trans('common.buttons.permalink_copied')
-    Timeout.set 2000, ->
-      targetEl.innerHTML = currentLabel
+    permalinkTmer = Timeout.set 2000, @clearPermalinkClicked
+
+    @setState permalinkTimer: permalinkTmer
 
 
   setMessage: (e) =>

              href: BeatmapDiscussionHelper.hash discussionId: @props.discussion.id
              onClick: @permalink
              className: "#{bn}__action #{bn}__action--button"
              osu.trans('common.buttons.permalink')

          if @props.canBeEdited
            button


  componentWillUnmount: =>
    @throttledUpdatePost.cancel()
    clearTimeout @state.permalinkTimer if @state.permalinkTimer?

    for own _id, xhr of @xhr
      xhr?.abort()
