mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-18 16:13:24 +02:00
Separate device logs
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
var _ = require('lodash')
|
||||
|
||||
module.exports = function DeviceControlCtrl($scope, DeviceService, GroupService,
|
||||
$location, $timeout, $window, $rootScope) {
|
||||
$location, $timeout, $window, $rootScope, LogcatService) {
|
||||
|
||||
$scope.showScreen = true
|
||||
|
||||
@@ -9,7 +9,18 @@ module.exports = function DeviceControlCtrl($scope, DeviceService, GroupService,
|
||||
|
||||
$scope.groupDevices = $scope.groupTracker.devices
|
||||
|
||||
$scope.$on('$locationChangeStart', function(event, next, current) {
|
||||
$scope.LogcatService = LogcatService
|
||||
$rootScope.LogcatService = LogcatService
|
||||
})
|
||||
|
||||
$scope.kickDevice = function(device) {
|
||||
if (Object.keys(LogcatService.deviceEntries).includes(device.serial)) {
|
||||
LogcatService.deviceEntries[device.serial].allowClean = true
|
||||
}
|
||||
|
||||
$scope.LogcatService = LogcatService
|
||||
$rootScope.LogcatService = LogcatService
|
||||
|
||||
if (!device || !$scope.device) {
|
||||
alert('No device found')
|
||||
|
||||
Reference in New Issue
Block a user