diff --git a/frontend/src/app/main/data/common.cljs b/frontend/src/app/main/data/common.cljs index a927ae8e7..201193b70 100644 --- a/frontend/src/app/main/data/common.cljs +++ b/frontend/src/app/main/data/common.cljs @@ -75,8 +75,8 @@ (rx/of (ntf/dialog :content (tr "notifications.by-code.upgrade-version") :controls :inline-actions - :notification-type :inline - :type level + :type :inline + :level level :actions [{:label "Refresh" :callback force-reload!}] :tag :notification))) diff --git a/frontend/src/app/main/data/media.cljs b/frontend/src/app/main/data/media.cljs index ad61859e5..904623505 100644 --- a/frontend/src/app/main/data/media.cljs +++ b/frontend/src/app/main/data/media.cljs @@ -47,8 +47,8 @@ (defn notify-start-loading [] (st/emit! (ntf/show {:content (tr "media.loading") - :notification-type :toast - :type :info + :type :toast + :level :info :timeout nil}))) (defn notify-finished-loading diff --git a/frontend/src/app/main/data/workspace/media.cljs b/frontend/src/app/main/data/workspace/media.cljs index e0317a6cb..f14c74e17 100644 --- a/frontend/src/app/main/data/workspace/media.cljs +++ b/frontend/src/app/main/data/workspace/media.cljs @@ -221,8 +221,8 @@ (watch [_ _ _] (rx/concat (rx/of (ntf/show {:content (tr "media.loading") - :notification-type :toast - :type :info + :type :toast + :level :info :timeout nil :tag :media-loading})) (->> (if (seq uris) @@ -449,8 +449,8 @@ (rx/concat (rx/of (ntf/show {:content (tr "media.loading") - :notification-type :toast - :type :info + :type :toast + :level :info :timeout nil :tag :media-loading})) (->> (rp/cmd! :clone-file-media-object params) diff --git a/frontend/src/app/main/errors.cljs b/frontend/src/app/main/errors.cljs index b4b300cd7..998d81c48 100644 --- a/frontend/src/app/main/errors.cljs +++ b/frontend/src/app/main/errors.cljs @@ -124,8 +124,8 @@ (let [message (tr "errors.paste-data-validation")] (st/async-emit! (ntf/show {:content message - :notification-type :toast - :type :error + :type :toast + :level :error :timeout 3000}))) :else @@ -139,8 +139,8 @@ [error] (ts/schedule #(st/emit! (ntf/show {:content "Internal Assertion Error" - :notification-type :toast - :type :error + :type :toast + :level :error :timeout 3000}))) (print-group! "Internal Assertion Error" @@ -155,8 +155,8 @@ (ts/schedule #(st/emit! (ntf/show {:content "Something wrong has happened (on worker)." - :notification-type :toast - :type :error + :type :toast + :level :error :timeout 3000}))) (print-group! "Internal Worker Error" @@ -169,8 +169,8 @@ [_] (ts/schedule #(st/emit! (ntf/show {:content "SVG is invalid or malformed" - :notification-type :toast - :type :error + :type :toast + :level :error :timeout 3000})))) ;; TODO: should be handled in the event and not as general error handler @@ -178,8 +178,8 @@ [_] (ts/schedule #(st/emit! (ntf/show {:content "There was an error with the comment" - :notification-type :toast - :type :error + :type :toast + :level :error :timeout 3000})))) ;; That are special case server-errors that should be treated diff --git a/frontend/src/app/main/ui/settings/access_tokens.cljs b/frontend/src/app/main/ui/settings/access_tokens.cljs index 302414790..f084b0366 100644 --- a/frontend/src/app/main/ui/settings/access_tokens.cljs +++ b/frontend/src/app/main/ui/settings/access_tokens.cljs @@ -99,8 +99,8 @@ (fn [event] (dom/prevent-default event) (wapi/write-to-clipboard (:token created)) - (st/emit! (ntf/show {:type :info - :notification-type :toast + (st/emit! (ntf/show {:level :info + :type :toast :content (tr "dashboard.access-tokens.copied-success") :timeout 7000}))))] diff --git a/frontend/src/app/main/ui/viewer/share_link.cljs b/frontend/src/app/main/ui/viewer/share_link.cljs index b24c32abd..bbe63d08e 100644 --- a/frontend/src/app/main/ui/viewer/share_link.cljs +++ b/frontend/src/app/main/ui/viewer/share_link.cljs @@ -134,8 +134,8 @@ copy-link (fn [_] (wapi/write-to-clipboard current-link) - (st/emit! (ntf/show {:type :info - :notification-type :toast + (st/emit! (ntf/show {:level :info + :type :toast :content (tr "common.share-link.link-copied-success") :timeout 1000})))