link to modules

This commit is contained in:
DieMyst 2020-12-09 16:29:28 +03:00
parent 11a8e5efc0
commit f098ce40cc
2 changed files with 8 additions and 4 deletions

View File

@ -99,9 +99,9 @@ viewToggledInterface isOpen name interface =
in
div []
([ div [ classes "fl w-100 light-shadow bg-near-white pa2 mv2 pointer", onClick (ToggleInterface name) ]
[ span [ classes "fl mh2 pv1 tl" ] [ text name ]
, div [ attribute "href" ("/module/" ++ name), classes "fl" ] [ img [ attribute "src" "/images/link.svg" ] [ ] ]
, div [ classes "o-40 f4 tr pr3" ]
[ span [ classes "fl mh2 pv1 tldib v-mid dib v-mid" ] [ text name ]
, img [ attribute "src" "/images/link.svg", attribute "href" ("/module/" ++ name), classes "dib v-mid mt1" ] []
, div [ classes "fl o-40 f4 fr pr3 dib v-mid" ]
[ if isOpen then
text ""

View File

@ -60,4 +60,8 @@ getAllCmd peerId relayId knownPeers =
routeCommand : Model -> Route -> Cmd msg
routeCommand m r =
if m.isInitialized then Cmd.none else getAllCmd m.peerId m.relayId m.knownPeers
if m.isInitialized then
Cmd.none
else
getAllCmd m.peerId m.relayId m.knownPeers