Changed "ONLY BEFORE/AFTER" hyperlinks to open in a new page (and applied them to Subs page

This commit is contained in:
Gregg8 2018-01-18 13:03:21 +11:00
parent c236d1ff63
commit 46c90fb504
2 changed files with 8 additions and 4 deletions

View File

@ -247,6 +247,7 @@
:children [[rc/hyperlink-href
;:class "app-db-path--label"
:label "ONLY BEFORE"
:target "_blank"
:href "https://github.com/Day8/re-frame-trace/wiki/app-db#diff"]]]
^{:key "only-before-diff"}
@ -262,6 +263,7 @@
:children [[rc/hyperlink-href
;:class "app-db-path--label"
:label "ONLY AFTER"
:target "_blank"
:href "https://github.com/Day8/re-frame-trace/wiki/app-db#diff"]]]
^{:key "only-after-diff"}

View File

@ -195,10 +195,11 @@
:height common/gs-19s
:justify :end
:style {:margin (css-join "0px" pad-padding)}
:children [[rc/hyperlink
:children [[rc/hyperlink-href
;:class "app-db-path--label"
:label "ONLY BEFORE"
:on-click #(println "Clicked [ONLY BEFORE]")]]])
:target "_blank"
:href "https://github.com/Day8/re-frame-trace/wiki/app-db#diff"]]])
(when (and open? diff?)
[rc/v-box
:height "60px"
@ -212,10 +213,11 @@
:height common/gs-19s
:justify :end
:style {:margin (css-join "0px" pad-padding)}
:children [[rc/hyperlink
:children [[rc/hyperlink-href
;:class "app-db-path--label"
:label "ONLY AFTER"
:on-click #(println "Clicked [ONLY AFTER]")]]])
:target "_blank"
:href "https://github.com/Day8/re-frame-trace/wiki/app-db#diff"]]])
(when (and open? diff?)
[rc/v-box
:height "60px"