Skip to content

Commit

Permalink
statement browser now updates on delete-actor, further error msg refi…
Browse files Browse the repository at this point in the history
…nements
  • Loading branch information
invaliduser committed Sep 27, 2023
1 parent eab8c17 commit e67b61f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
8 changes: 3 additions & 5 deletions src/com/yetanalytics/lrs_admin_ui/handlers.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -630,14 +630,12 @@
(re-frame/reg-event-fx
:delete-actor/delete-success
(fn [_ [_ actor-ifi]]
{:fx [[:dispatch [:notification/notify true (str "Successfully deleted " actor-ifi)]]]}))
{:fx [[:dispatch [:notification/notify false (str "Successfully deleted " actor-ifi)]]
[:dispatch [:browser/load-xapi]]]}))
(re-frame/reg-event-fx
:delete-actor/server-error
(fn [_ [_ actor-ifi _err]]
{:fx [[:dispatch
[:server-error {:response
{"error"
(str "Error when attempting to delete actor " actor-ifi)}}]]]}))
{:fx [[:dispatch [:notification/notify true (str "Error when attempting to delete actor " actor-ifi)]]]}))

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; OIDC Support
Expand Down
4 changes: 2 additions & 2 deletions src/com/yetanalytics/lrs_admin_ui/views/delete_actor.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@

(case @ifi-type "account"
[:<>
[labeled-input "homePage" (r/cursor input [:home-page])]
[labeled-input "name" (r/cursor input [:name])]]
[labeled-input "name" (r/cursor input [:name])]
[labeled-input "homePage" (r/cursor input [:home-page])]]
[labeled-input (name @ifi-type) input])
[:div.section-pad [:input {:type "button",
:class "btn-blue-bold",
Expand Down

0 comments on commit e67b61f

Please sign in to comment.