Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
e1b217fb
Commit
e1b217fb
authored
Jan 08, 2018
by
Kushal Pandya
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
GeoNodeHealthStatus Component
parent
e7d17a3d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
41 additions
and
0 deletions
+41
-0
ee/app/assets/javascripts/geo_nodes/components/geo_node_health_status.vue
...vascripts/geo_nodes/components/geo_node_health_status.vue
+41
-0
No files found.
ee/app/assets/javascripts/geo_nodes/components/geo_node_health_status.vue
0 → 100644
View file @
e1b217fb
<
script
>
import
icon
from
'
~/vue_shared/components/icon.vue
'
;
import
{
HEALTH_STATUS_ICON
}
from
'
../constants
'
;
export
default
{
props
:
{
status
:
{
type
:
String
,
required
:
true
,
},
},
components
:
{
icon
,
},
computed
:
{
healthCssClass
()
{
return
`geo-node-
${
this
.
status
.
toLowerCase
()}
`
;
},
statusIconName
()
{
return
HEALTH_STATUS_ICON
[
this
.
status
.
toLowerCase
()];
},
},
};
</
script
>
<
template
>
<div
class=
"node-detail-value node-health-status"
:class=
"healthCssClass"
>
<icon
:size=
"16"
:name=
"statusIconName"
/>
<span
class=
"status-text prepend-left-5"
>
{{
status
}}
</span>
</div>
</
template
>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment