diff --git a/frontend/src/app/main/ui/dashboard/fonts.cljs b/frontend/src/app/main/ui/dashboard/fonts.cljs index 7ae210b5f..c9cb383fd 100644 --- a/frontend/src/app/main/ui/dashboard/fonts.cljs +++ b/frontend/src/app/main/ui/dashboard/fonts.cljs @@ -11,6 +11,7 @@ [app.common.media :as cm] [app.main.data.fonts :as df] [app.main.data.modal :as modal] + [app.main.data.notifications :as ntf] [app.main.repo :as rp] [app.main.store :as st] [app.main.ui.components.context-menu-a11y :refer [context-menu*]] @@ -109,6 +110,8 @@ (swap! uploading* disj id) (st/emit! (df/add-font font))) (fn [error] + (st/emit! (ntf/error (tr "errors.bad-font" (first (:names item))))) + (swap! fonts* dissoc id) (js/console.log "error" error)))))) on-upload