mirror of
https://github.com/openfaas/faas.git
synced 2025-06-19 04:26:35 +00:00
Simplify instrumentation metrics.
- fix javascript deserialization in UI with json response - create swarm watcher to monitor replicas
This commit is contained in:
6
gateway/assets/script/bootstrap.js
vendored
6
gateway/assets/script/bootstrap.js
vendored
@ -35,7 +35,11 @@ app.controller("home", ['$scope', '$log', '$http', '$location', '$timeout', '$md
|
||||
|
||||
$http(options)
|
||||
.then(function(response) {
|
||||
$scope.invocationResponse = response.data;
|
||||
if($scope.invocation && $scope.invocation.contentType == "json") {
|
||||
$scope.invocationResponse = JSON.stringify(response.data, -1, " ");
|
||||
} else {
|
||||
$scope.invocationResponse = response.data;
|
||||
}
|
||||
$scope.invocationStatus = response.status;
|
||||
}).catch(function(error1) {
|
||||
$scope.invocationResponse = error1.statusText + "\n" + error1.data;
|
||||
|
Reference in New Issue
Block a user