Handle split of addon and services

This commit is contained in:
Girish Ramakrishnan
2018-12-02 18:07:11 -08:00
parent 0430fb2772
commit 203b31d81f
3 changed files with 18 additions and 18 deletions

View File

@@ -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') }
];