Skip to content

Commit

Permalink
Append image src paths with proxy prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
kelvinqian00 committed Nov 21, 2024
1 parent 14db3b7 commit f9f9ae9
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/com/yetanalytics/lrs_admin_ui/subs.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,17 @@

(reg-sub
:resources/image
:<- [::db/proxy-path]
:<- [::db/resource-base]
(fn [resource-base [_ image-name]]
(str resource-base "images/" image-name)))
(fn [[proxy-path resource-base] [_ image-name]]
(str proxy-path resource-base "images/" image-name)))

(reg-sub
:resources/icon
:<- [::db/proxy-path]
:<- [::db/resource-base]
(fn [resource-base [_ icon-name]]
(str resource-base "images/icons/" icon-name)))
(fn [[proxy-path resource-base] [_ icon-name]]
(str proxy-path resource-base "images/icons/" icon-name)))

(reg-sub
:db/language
Expand Down

0 comments on commit f9f9ae9

Please sign in to comment.