Pass crashId to view crash logs
This commit is contained in:
@@ -97,6 +97,15 @@ app.controller('LogsController', ['$scope', '$timeout', '$location', 'Client', f
|
||||
];
|
||||
|
||||
$scope.selected = BUILT_IN_LOGS.find(function (e) { return e.value === ids.id; });
|
||||
callback();
|
||||
} else if (ids.crashId) {
|
||||
$scope.selected = {
|
||||
type: 'platform',
|
||||
value: 'crash-' + ids.crashId,
|
||||
name: 'Crash',
|
||||
url: Client.makeURL('/api/v1/cloudron/logs/crash-' + ids.crashId)
|
||||
};
|
||||
|
||||
callback();
|
||||
} else if (ids.appId) {
|
||||
Client.getApp(ids.appId, function (error, app) {
|
||||
@@ -158,7 +167,7 @@ app.controller('LogsController', ['$scope', '$timeout', '$location', 'Client', f
|
||||
Client.refreshConfig(function (error) {
|
||||
if (error) return $scope.error(error);
|
||||
|
||||
select({ id: search.id, taskId: search.taskId, appId: search.appId }, function (error) {
|
||||
select({ id: search.id, taskId: search.taskId, appId: search.appId, crashId: search.crashId }, function (error) {
|
||||
if (error) return $scope.error(error);
|
||||
|
||||
// now mark the Client to be ready
|
||||
|
||||
Reference in New Issue
Block a user