            :loading-text "Cancelling..."
            :icon-name "Status-Canceled"
            :on-click #(do
-                        (raise-build-action! :cancel-build-clicked)
+                        (rebuild! [:cancel-build-clicked build-args])
                         ((om/get-shared owner :track-event) {:event-type :cancel-build-clicked}))})
 
         should-show-rebuild?

                                                           :properties {:status-words status-words}})}
       (build-status-badge build)]


      ;; Actions should be mutually exclusive. Just in case they
      ;; aren't, use a cond so it doesn't try to render both in the
      ;; same place


(defn build-row [{:keys [build project]} owner {:keys [show-actions? show-branch? show-project?]}]
  (let [url (build-model/path-for (select-keys build [:vcs_url]) build)
        rebuild! #(raise! owner %)
        build-args (merge (build-model/build-args build) {:component "build-row" :is-no-cache false})
        status-words (build-model/status-words build)
        should-show-cancel? (and (project-model/can-trigger-builds? project)
                                 (build-model/can-cancel? build))
