Handle split of addon and services
This commit is contained in:
@@ -34,7 +34,7 @@ app.controller('LogsController', ['$scope', '$timeout', '$location', 'Client', f
|
||||
|
||||
var func;
|
||||
if ($scope.selected.type === 'platform') func = Client.getPlatformLogs;
|
||||
else if ($scope.selected.type === 'addon') func = Client.getAddonLogs;
|
||||
else if ($scope.selected.type === 'addon') func = Client.getServiceLogs;
|
||||
else func = Client.getAppLogs;
|
||||
|
||||
func($scope.selected.value, true, $scope.lines, function handleLogs(error, result) {
|
||||
@@ -73,7 +73,7 @@ app.controller('LogsController', ['$scope', '$timeout', '$location', 'Client', f
|
||||
{ name: 'MongoDB', type: 'addon', value: 'mongodb', url: Client.makeURL('/api/v1/services/mongodb/logs') },
|
||||
{ name: 'MySQL', type: 'addon', value: 'mysql', url: Client.makeURL('/api/v1/services/mysql/logs') },
|
||||
{ name: 'PostgreSQL', type: 'addon', value: 'postgresql', url: Client.makeURL('/api/v1/services/postgresql/logs') },
|
||||
{ name: 'Email', type: 'addon', value: 'email', url: Client.makeURL('/api/v1/services/email/logs') },
|
||||
{ name: 'Mail', type: 'addon', value: 'mail', url: Client.makeURL('/api/v1/services/mail/logs') },
|
||||
{ name: 'Docker', type: 'addon', value: 'docker', url: Client.makeURL('/api/v1/services/docker/logs') }
|
||||
];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user