Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
spring-boot-admin
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
openSource
spring-boot-admin
Commits
b9b97677
Commit
b9b97677
authored
May 07, 2017
by
Jochen Wierum
Committed by
Johannes Edmeier
May 12, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Disable application tabs in the frontend if backing endpoint is not available
parent
6f129e74
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
33 additions
and
8 deletions
+33
-8
module.js
...dmin-server-ui/modules/applications-environment/module.js
+9
-2
module.js
...g-boot-admin-server-ui/modules/applications-jmx/module.js
+6
-2
module.js
...ot-admin-server-ui/modules/applications-metrics/module.js
+9
-2
module.js
...ot-admin-server-ui/modules/applications-threads/module.js
+9
-2
No files found.
spring-boot-admin-server-ui/modules/applications-environment/module.js
View file @
b9b97677
...
...
@@ -32,10 +32,17 @@ module.config(function ($stateProvider) {
});
});
module
.
run
(
function
(
ApplicationViews
,
$sce
)
{
module
.
run
(
function
(
ApplicationViews
,
$
http
,
$
sce
)
{
ApplicationViews
.
register
({
order
:
10
,
title
:
$sce
.
trustAsHtml
(
'<i class="fa fa-server fa-fw"></i>Environment'
),
state
:
'applications.environment'
state
:
'applications.environment'
,
show
:
function
(
application
)
{
return
$http
.
head
(
'api/applications/'
+
application
.
id
+
'/env'
).
then
(
function
()
{
return
true
;
}).
catch
(
function
()
{
return
false
;
});
}
});
});
spring-boot-admin-server-ui/modules/applications-jmx/module.js
View file @
b9b97677
...
...
@@ -40,14 +40,18 @@ module.config(function ($stateProvider) {
});
});
module
.
run
(
function
(
ApplicationViews
,
$sce
,
$http
)
{
module
.
run
(
function
(
ApplicationViews
,
$sce
,
$http
,
jolokia
,
ApplicationJmx
)
{
ApplicationViews
.
register
({
order
:
40
,
title
:
$sce
.
trustAsHtml
(
'<i class="fa fa-cogs fa-fw"></i>JMX'
),
state
:
'applications.jmx'
,
show
:
function
(
application
)
{
return
$http
.
head
(
'api/applications/'
+
application
.
id
+
'/jolokia'
).
then
(
function
()
{
return
true
;
return
ApplicationJmx
.
list
(
application
).
then
(
function
()
{
return
true
;
}).
catch
(
function
()
{
return
false
;
});
}).
catch
(
function
()
{
return
false
;
});
...
...
spring-boot-admin-server-ui/modules/applications-metrics/module.js
View file @
b9b97677
...
...
@@ -33,10 +33,17 @@ module.config(function ($stateProvider) {
});
});
module
.
run
(
function
(
ApplicationViews
,
$sce
)
{
module
.
run
(
function
(
ApplicationViews
,
$
http
,
$
sce
)
{
ApplicationViews
.
register
({
order
:
5
,
title
:
$sce
.
trustAsHtml
(
'<i class="fa fa-bar-chart fa-fw"></i>Metrics'
),
state
:
'applications.metrics'
state
:
'applications.metrics'
,
show
:
function
(
application
)
{
return
$http
.
head
(
'api/applications/'
+
application
.
id
+
'/metrics'
).
then
(
function
()
{
return
true
;
}).
catch
(
function
()
{
return
false
;
});
}
});
});
spring-boot-admin-server-ui/modules/applications-threads/module.js
View file @
b9b97677
...
...
@@ -33,10 +33,17 @@ module.config(function ($stateProvider) {
});
});
module
.
run
(
function
(
ApplicationViews
,
$sce
)
{
module
.
run
(
function
(
ApplicationViews
,
$
http
,
$
sce
)
{
ApplicationViews
.
register
({
order
:
50
,
title
:
$sce
.
trustAsHtml
(
'<i class="fa fa-list fa-fw"></i>Threads'
),
state
:
'applications.threads'
state
:
'applications.threads'
,
show
:
function
(
application
)
{
return
$http
.
head
(
'api/applications/'
+
application
.
id
+
'/dump'
).
then
(
function
()
{
return
true
;
}).
catch
(
function
()
{
return
false
;
});
}
});
});
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