mirror of
https://github.com/fluencelabs/dashboard
synced 2024-12-04 23:30:20 +00:00
link to modules
This commit is contained in:
parent
11a8e5efc0
commit
f098ce40cc
@ -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 "▲"
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user