Skip to content

Commit

Permalink
Warning readded (+1 for Hl)
Browse files Browse the repository at this point in the history
  • Loading branch information
iGEL committed Dec 17, 2023
1 parent 6d8a4d9 commit f47b7fe
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/signals/demo.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
($ signal/defs)
($ signal/signal {:signal signal})))

(def warnings-for-system {:hv-semaphore "Positionierung der einzelnen Signale und Animationen müssen noch überarbeitet werden. Ne2 beim Mehrabschnitt fehlt"
:hl "Markierung für Vorsignalwiederholer fehlt."})

(defui demo []
(let [[distant set-distant!] (uix/use-state (signal/distant {:system :ks}))
[repeater set-repeater!] (uix/use-state (signal/distant {:system :ks
Expand Down Expand Up @@ -68,6 +71,9 @@
:repeater repeater
:combination combination
:main main}})))
(when-let [warning (warnings-for-system (:system main))]
($ :div.alert.alert-warning {:role "alert"}
warning))
($ :div.demo-container
($ :div.demo-signal
($ :h3.demo-signal-label "Vorsignal")
Expand Down

0 comments on commit f47b7fe

Please sign in to comment.