Browse Source

feat: conditionally show status text separator

Miguel Ángel Moreno 2 months ago
parent
commit
d57573cc0e
2 changed files with 2 additions and 2 deletions
  1. 1 1
      src/frontend/tubo/layout/views.cljs
  2. 1 1
      src/frontend/tubo/notifications/views.cljs

+ 1 - 1
src/frontend/tubo/layout/views.cljs

@@ -282,7 +282,7 @@
        :loading [:div.grow-0 [loading-icon]]
        [:i.fa-solid.fa-circle-info])
      [:h3.font-bold
-      (str status " " status-text)]]
+      (str status (when status-text (str " " status-text)))]]
     (when parse-error
       [:span.break-words
        (or (:original-text parse-error) (:status-text parse-error))])

+ 1 - 1
src/frontend/tubo/notifications/views.cljs

@@ -24,7 +24,7 @@
          #(rf/dispatch [:notifications/remove (:id notification)])}
         [:i.fa-solid.fa-close]]
        [:span.font-bold.break-all
-        (str status " " status-text)]
+        (str status (when status-text (str " " status-text)))]
        (when parse-error
          [:span.line-clamp-1
           (or (:original-text parse-error) (:status-text parse-error))])]]]))