Skip to content
Snippets Groups Projects
Commit ef6f3a1b authored by Chris Martin's avatar Chris Martin
Browse files

Hide floating IPs in preview if they are assigned to a resource

parent 88bd4515
No related branches found
No related tags found
1 merge request!562Project Overview page
......@@ -194,11 +194,19 @@ volumeTileContents context project =
floatingIpTileContents : View.Types.Context -> Project -> Element.Element Msg
floatingIpTileContents context project =
-- TODO hide any floating IPs? check FloatingIpList.elm
let
renderFloatingIp : OSTypes.FloatingIp -> List (Element.Element Msg)
renderFloatingIp floatingIp =
[ Element.text floatingIp.address ]
showFloatingIp : OSTypes.FloatingIp -> Bool
showFloatingIp floatingIp =
case floatingIp.portUuid of
Just _ ->
False
Nothing ->
True
in
tileContents
context
......@@ -206,7 +214,7 @@ floatingIpTileContents context project =
context.localization.floatingIpAddress
VH.renderRDPP
renderFloatingIp
(\_ -> True)
showFloatingIp
keypairTileContents : View.Types.Context -> Project -> Element.Element Msg
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment