     (.modal ($ :#iModalProjectMenu) "hide")
     (ajax
      (str "/api/projects/" project-id) "DELETE"
-     {} #(common-update-callback "Project don't deleted!" {} %))))
+     {} (wrap-error-alert 
+         #(common-update-callback "Project don't deleted!" {} %)))))
 
 (defn update-project []
   (let [project-id (:current-project (deref state/app-state))

    (ajax
     (str "/api/projects/" project-id) "PUT"
     {:name new-name} 
     #(common-update-callback "Project don't renamed!" {} %))))


        (.modal ($ :#iModal) "hide")
        (ajax 
         (str "/api/actions/" action-id) "PUT" 
         data (wrap-error-alert
               #(common-update-callback "Action don't updated!" data %)))))))


(defn delete-action [action-id]
  (.modal ($ :#iModal) "hide")
  (ajax 
   (str "/api/actions/" action-id) "DELETE"
   {} (wrap-error-alert
       #(common-update-callback "Action don't deleted!" {} %))))



