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
14d8c01b
Commit
14d8c01b
authored
Dec 27, 2016
by
Johannes Edmeier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix query for old flyway/liquibase endpoint format
parent
3bddd4eb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
flywayCtrl.js
...-ui/modules/applications-flyway/controllers/flywayCtrl.js
+2
-2
liquibaseCtrl.js
...dules/applications-liquibase/controllers/liquibaseCtrl.js
+1
-1
No files found.
spring-boot-admin-server-ui/modules/applications-flyway/controllers/flywayCtrl.js
View file @
14d8c01b
...
@@ -26,7 +26,7 @@ module.exports = function ($scope, $http, application) {
...
@@ -26,7 +26,7 @@ module.exports = function ($scope, $http, application) {
$scope
.
refresh
=
function
()
{
$scope
.
refresh
=
function
()
{
$http
.
get
(
'api/applications/'
+
application
.
id
+
'/flyway'
).
then
(
function
(
response
)
{
$http
.
get
(
'api/applications/'
+
application
.
id
+
'/flyway'
).
then
(
function
(
response
)
{
if
(
Array
.
isArray
(
response
.
data
))
{
if
(
Array
.
isArray
(
response
.
data
)
&&
(
response
.
data
.
length
===
0
||
response
.
data
[
0
].
hasOwnProperty
(
'name'
))
)
{
$scope
.
reports
=
response
.
data
;
$scope
.
reports
=
response
.
data
;
}
else
{
}
else
{
$scope
.
reports
=
[{
name
:
'flyway'
,
migrations
:
response
.
data
}];
$scope
.
reports
=
[{
name
:
'flyway'
,
migrations
:
response
.
data
}];
...
@@ -35,7 +35,7 @@ module.exports = function ($scope, $http, application) {
...
@@ -35,7 +35,7 @@ module.exports = function ($scope, $http, application) {
};
};
$scope
.
refresh
();
$scope
.
refresh
();
$scope
.
inArray
=
function
(
migrationStatus
,
statusArray
)
{
$scope
.
inArray
=
function
(
migrationStatus
,
statusArray
)
{
return
statusArray
.
indexOf
(
migrationStatus
)
!==
-
1
;
return
statusArray
.
indexOf
(
migrationStatus
)
!==
-
1
;
};
};
};
};
spring-boot-admin-server-ui/modules/applications-liquibase/controllers/liquibaseCtrl.js
View file @
14d8c01b
...
@@ -23,7 +23,7 @@ module.exports = function ($scope, $http, application) {
...
@@ -23,7 +23,7 @@ module.exports = function ($scope, $http, application) {
$scope
.
refresh
=
function
()
{
$scope
.
refresh
=
function
()
{
$http
.
get
(
'api/applications/'
+
application
.
id
+
'/liquibase'
).
then
(
function
(
response
)
{
$http
.
get
(
'api/applications/'
+
application
.
id
+
'/liquibase'
).
then
(
function
(
response
)
{
if
(
Array
.
isArray
(
response
.
data
))
{
if
(
Array
.
isArray
(
response
.
data
)
&&
(
response
.
data
.
length
===
0
||
response
.
data
[
0
].
hasOwnProperty
(
'name'
))
)
{
$scope
.
reports
=
response
.
data
;
$scope
.
reports
=
response
.
data
;
}
else
{
}
else
{
$scope
.
reports
=
[{
name
:
'liqibase'
,
changeLogs
:
response
.
data
}];
$scope
.
reports
=
[{
name
:
'liqibase'
,
changeLogs
:
response
.
data
}];
...
...
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