Skip to content
GitLab
Menu
Why GitLab
Pricing
Contact Sales
Explore
Why GitLab
Pricing
Contact Sales
Explore
Sign in
Get free trial
Primary navigation
Search or go to…
Project
exosphere
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Privacy statement
Keyboard shortcuts
?
What's new
4
Snippets
Groups
Projects
Show more breadcrumbs
Exosphere
exosphere
Commits
ef6f3a1b
Commit
ef6f3a1b
authored
3 years ago
by
Chris Martin
Browse files
Options
Downloads
Patches
Plain Diff
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
!562
Project Overview page
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/Page/ProjectOverview.elm
+10
-2
10 additions, 2 deletions
src/Page/ProjectOverview.elm
with
10 additions
and
2 deletions
src/Page/ProjectOverview.elm
+
10
−
2
View file @
ef6f3a1b
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment